forked from iLanguage/iLanguageCloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cross referencing user feedback and tests
iLanguage#66 iLanguage#72 iLanguage#73 iLanguage#63 iLanguage#69 iLanguage#67 iLanguage#70 referenced issues from user feedback in the tests.
- Loading branch information
Showing
2 changed files
with
80 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
|
||
/** | ||
<pre> | ||
======== A Handy Little Jasmine Reference ======== | ||
https://github.com/pivotal/jasmine/wiki/Matchers | ||
Spec matchers: | ||
expect(x).toEqual(y); compares objects or primitives x and y and passes if they are equivalent | ||
expect(x).toBe(y); compares objects or primitives x and y and passes if they are the same object | ||
expect(x).toMatch(pattern); compares x to string or regular expression pattern and passes if they match | ||
expect(x).toBeDefined(); passes if x is not undefined | ||
expect(x).toBeUndefined(); passes if x is undefined | ||
expect(x).toBeNull(); passes if x is null | ||
expect(x).toBeTruthy(); passes if x evaluates to true | ||
expect(x).toBeFalsy(); passes if x evaluates to false | ||
expect(x).toContain(y); passes if array or string x contains y | ||
expect(x).toBeLessThan(y); passes if x is less than y | ||
expect(x).toBeGreaterThan(y); passes if x is greater than y | ||
expect(function(){fn();}).toThrow(e); passes if function fn throws exception e when executed | ||
Every matcher's criteria can be inverted by prepending .not: | ||
expect(x).not.toEqual(y); compares objects or primitives x and y and passes if they are not equivalent | ||
Custom matchers help to document the intent of your specs, and can help to remove code duplication in your specs. | ||
beforeEach(function() { | ||
this.addMatchers({ | ||
toBeLessThan: function(expected) { | ||
var actual = this.actual; | ||
var notText = this.isNot ? " not" : ""; | ||
this.message = function () { | ||
return "Expected " + actual + notText + " to be less than " + expected; | ||
} | ||
return actual < expected; | ||
} | ||
}); | ||
}); | ||
</pre> | ||
* @requires FieldDB | ||
* @requires Jasmine | ||
* | ||
* @example FieldDB | ||
* @module FieldDBTest | ||
* @extends Jasmine.spec | ||
*/ | ||
describe("tagcloud", function() { | ||
|
||
it("should automatically detect if a user is making a tag cloud #66", function() { | ||
expect(true).toBeTruthy(); | ||
}); | ||
|
||
it("should allow all the words typed to go into the cloud #66", function() { | ||
expect(true).toBeTruthy(); | ||
}); | ||
|
||
it("should duplicate to fill space #66 ", function() { | ||
expect(true).toBeTruthy(); | ||
}); | ||
it("It should work with Japanese #72 ", function() { | ||
expect(true).toBeTruthy(); | ||
}); | ||
it("Should work on Chromebooks #73", function() { | ||
expect(true).toBeTruthy(); | ||
}); | ||
it("Should be able to move the words around #63", function() { | ||
expect(true).toBeTruthy(); | ||
}); | ||
it("Should be a kid friendly mode #69", function() { | ||
expect(true).toBeTruthy(); | ||
}); | ||
|
||
|
||
}); |
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