More Qunit tests including a CLI runner

This commit is contained in:
Robin Ward
2013-06-18 13:44:20 -04:00
parent 8e96299653
commit 60fce196c7
11 changed files with 289 additions and 97 deletions

View File

@ -7,7 +7,7 @@ var testObj = Em.Object.createWithMixins(Discourse.Presence, {
nonEmptyString: "Evil Trout",
emptyArray: [],
nonEmptyArray: [1, 2, 3],
age: 34,
age: 34
});
test("present", function() {
@ -18,7 +18,6 @@ test("present", function() {
ok(testObj.present('age'), "integers are present");
});
test("blank", function() {
ok(testObj.blank('emptyString'), "Empty strings are blank");
ok(!testObj.blank('nonEmptyString'), "Non empty strings are not blank");