UNPKG

jasmine-node

Version:
60 lines (50 loc) 1.42 kB
describe('jasmine-node-flat', function(){ it('should pass', function(){ expect(1+2).toEqual(3); }); }); describe('Testing some characters', function() { var chars = ['&', '\'', '"', '<', '>']; for(var i = 0; i < chars.length; i+=1) { currentChar = chars[i]; it('should reject ' + currentChar, (function(currentChar) { expect(false).toEqual(false); })(currentChar)); } }); describe('Testing waitsfor functionality', function() { it("Runs and then waitsFor", function() { runs(function() { 1+1; }); waitsFor(function() { return true === false; }, "the impossible", 1000); runs(function() { expect(true).toBeTruthy(); }); }); }); describe('root', function () { describe('nested', function () { xit('nested statement', function () { expect(1).toBeTruthy(); }); }); it('root statement', function () { expect(1).toBeTruthy(); }); }); describe("Top level describe block", function() { it("first it block in top level describe", function() { expect(true).toEqual(true); }); describe("Second level describe block", function() { it("first it block in second level describe", function() { expect(true).toBe(true); }); }); it("second it block in top level describe", function() { expect(true).toEqual(true); }); });