diff --git a/test/spec/common/tag-cloud-spec.js b/test/spec/common/tag-cloud-spec.js index e69de29..0ee80bd 100644 --- a/test/spec/common/tag-cloud-spec.js +++ b/test/spec/common/tag-cloud-spec.js @@ -0,0 +1,77 @@ + +/** +
+ ======== 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; + } + + }); + }); ++ +* @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(); + }); + + +}); \ No newline at end of file diff --git a/test/spec/common/wordcloud-spec.js b/test/spec/common/wordcloud-spec.js index 42cffbe..e19bfbf 100644 --- a/test/spec/common/wordcloud-spec.js +++ b/test/spec/common/wordcloud-spec.js @@ -140,11 +140,11 @@ describe('lib/word-cloud', function() { expect(true).toBeTruthy(); }); - it('should generate svgs for import into Inkscape/Illustrator', function() { + it('should generate svgs for import into Inkscape/Illustrator #70', function() { expect(true).toBeTruthy(); }); - it('should generate pngs for fast sharing/re-use', function() { + it('should generate pngs for fast sharing/re-use #70', function() { expect(true).toBeTruthy(); }); @@ -156,7 +156,7 @@ describe('lib/word-cloud', function() { expect(true).toBeTruthy(); }); - it('should render within a custom svg outline/shape', function() { + it('should render within a custom svg outline/shape #67', function() { expect(true).toBeTruthy(); });