Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi Any one can explain me how to write test cases using JQuery with working example and explanation. #14

Open
harish19 opened this issue Jan 20, 2015 · 3 comments

Comments

@harish19
Copy link

Hi Any one can explain me how to write test cases using JQuery with working example and explanation.

@EdwardCoyle
Copy link

I second this request. The example provided for jQuery functional testing is good. However, as someone who's currently trying to figure out how to test a jQuery plugin with The Intern, it would be immensely helpful if there was an example of a Unit Test for something like a jQuery plugin.

Specifically, how do we set up the dependency on jQuery? What does the project configuration look like? The Todo example doesn't help with this situation.

@dylans
Copy link
Contributor

dylans commented Mar 28, 2015

I think the Backbone example actually covers this issue pretty well, as it shows how to use the order plugin to first load jquery, then load underscore, and then load backbone. See https://github.com/theintern/intern-examples/blob/master/backbone-example/tests/models/todo.js .

@jmezaschmidt
Copy link

And what about DOM manipulation? Does intern provide a similar DOM element like the qunit-fixture (Qunit) in order to play around with the DOM ? or does it have to be totally managed by the dev ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants