mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 13:51:09 +08:00
More Qunit tests including a CLI runner
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user