source: pyenvjasmine/pyenvjasmine/tests/sample/tests/specs/test_demo.spec.js@ 0:0175515fceea

Last change on this file since 0:0175515fceea was 0:0175515fceea, checked in by Borja Lopez <borja@…>, 9 years ago

Imported sources from http://repos.betabug.ch/pyenvjasmine

File size: 709 bytes
Line 
1// Load the file to test here.
2//
3// Example:
4EnvJasmine.load(EnvJasmine.jsDir + "demo.js");
5
6// Load mocks for this spec
7EnvJasmine.load(EnvJasmine.mocksDir + "demo.mock.js");
8
9describe("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);
24 });
25});
Note: See TracBrowser for help on using the repository browser.