forked from rmurphey/js-assessment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.txt
24 lines (19 loc) · 888 Bytes
/
help.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
To work on the tests, open a browser and visit http://localhost:{{port}}. Then,
edit the tests in the files in the tests/app directory, reloading your browser
to see whether the tests are passing.
Each test will look something like this:
it("you should be able to return a truthy value", function() {
// define a function for fn so that the following will pass
expect(fn()).to.be.ok();
});
In the case of the above test, you'd need to define a value for fn (by default,
fn is a function that does nothing):
it("you should be able to return a truthy value", function() {
// define a function for fn so that the following will pass
fn = function() {
return true;
};
expect(fn()).to.be.ok();
});
For some tests, the instructions will be more involved; in those cases, the
inline comments should give you the details you need.