Hi,
I have a test that passes if I run it by itself, but if I duplicate
the code and run both of them, the second one fails. What am I doing
wrong?
__test.js___________________________________
test("bind div", function() {
$("#my_div").click();
ok( check_if_it_worked, "working")
});
test("bind div again", function() {
$("#my_div").click();
ok( check_if_it_worked, "working") //Here it fails!
});
__app.js___________________________________
$(document).ready(function() {
$("#my_div").click(function () {
do_something
});
});
Thanks!
Nacho