Line | |
---|
1 | // Load the file to test here.
|
---|
2 | //
|
---|
3 | // Example:
|
---|
4 | EnvJasmine.load(EnvJasmine.jsDir + "demo.js");
|
---|
5 |
|
---|
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);
|
---|
24 | });
|
---|
25 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.