Jasmine DOM test using jasmine jquery with require module

Posted by Purushoth on Stack Overflow See other posts from Stack Overflow or by Purushoth
Published on 2014-08-22T10:18:02Z Indexed on 2014/08/22 10:19 UTC
Read the original article Hit count: 258

Filed under:
|

I am using custom variant of jasmine 2.0 from here https://github.com/erikringsmuth/jasmine2-amd-specrunner. So that testing my require.js based application made possible.

Here i have facing problem with using jasmine-jquery. The jasmine object is undefined. $ and window is fine.

function (window, jasmine, $) I have reference added jasmine and jquery lib too

<script type="text/javascript" src="lib/jasmine.js"></script>
<script type="text/javascript" src="lib/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="lib/helpers/jasmine-jquery.js"></script>

© Stack Overflow or respective owner

Related posts about jasmine

Related posts about jasmine-jquery