Created
April 4, 2013 10:19
-
-
Save ceth-x86/5309314 to your computer and use it in GitHub Desktop.
QUnit : integrating with DOM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module("module 2", { | |
setup: function() { | |
$("body").append("<div id='div1'>some text</div>"); | |
}, | |
teardown: function() { | |
$("#div1").remove(); | |
} | |
}); | |
test("integrating with DOM", function() { | |
strictEqual($("#div1").length, 1) | |
strictEqual($("#div1").text(), 'some text'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment