Changeset 19:ab5f65372038 in pyenvjasmine for pyenvjasmine/envjasmine/specs/demo.spec.js
- Timestamp:
- Apr 24, 2015, 1:03:31 PM (9 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pyenvjasmine/envjasmine/specs/demo.spec.js
r0 r19 1 // Load the file to test here.2 //3 // Example:4 1 EnvJasmine.load(EnvJasmine.jsDir + "demo.js"); 5 2 6 // Load mocks for this spec 7 EnvJasmine.load(EnvJasmine.mocksDir + "demo.mock.js"); 8 9 describe("Demo", function () { 10 it("asserts that one plus one equals two", function () { 11 expect(1 + 1 == 2).toEqual(true); 12 }); 13 14 it("asserts that 1 + 1 does not equal 3", function () { 15 expect(1 + 1 == 3).toEqual(false); 16 }); 17 18 it("asserts that a user has a birthdate", function () { 19 expect(Demo.checkBirthdate(demoUser)).toEqual(true); 20 }); 21 22 it("asserts that an ill-formed user has no birthdate", function () { 23 expect(Demo.checkBirthdate(badUser)).toEqual(false); 3 describe('greeter', function () { 4 it('greets me', function () { 5 expect(NS.greeter('Trevor')).toEqual('Hello Trevor!'); 24 6 }); 25 7 });
Note:
See TracChangeset
for help on using the changeset viewer.