first round of tests...

This commit is contained in:
Jeremy Ashkenas
2009-10-25 20:36:28 -04:00
parent 02ede85b53
commit fe7156e4ea
7 changed files with 1141 additions and 0 deletions

29
test/example.js Normal file
View File

@@ -0,0 +1,29 @@
$(document).ready(function(){
test("a basic test example", function() {
ok( true, "this test is fine" );
var value = "hello";
equals( "hello", value, "We expect value to be hello" );
});
module("Module A");
test("first test within module", function() {
ok( true, "all pass" );
});
test("second test within module", function() {
ok( true, "all pass" );
});
module("Module B");
test("some other test", function() {
expect(2);
equals( true, false, "failing test" );
equals( true, true, "passing test" );
});
});