Skip to content
Permalink
Browse files
added more resources
  • Loading branch information
aa7401 committed Nov 16, 2018
1 parent 6d2f7d7 commit 0c0c9e076e73616ccad17325ba301f40eabe71bf
Showing 1 changed file with 3 additions and 1 deletion.
@@ -6,6 +6,8 @@ In this lab you will be refining your unit tests and augmenting these with the u
Resources:

1. [Lecture slides](https://docs.google.com/presentation/d/1rY-Oc4LcSvguGyGSOz2NdOYo8-dtD0yUswmXfbi_-Ls/edit?usp=sharing)
2. [Test Cafe (an alternative acceptance testing tool)](http://devexpress.github.io/testcafe/)
3. [Test Cafe Studio (acceptance testing IDE)](https://testcafe-studio.devexpress.com/documentation/getting-started/)

## 1 Defining API Fitness Functions

@@ -42,7 +44,7 @@ In the previous example you were working with the `todo` module which saves and
1. Locate and open the `modules/todo.js` script.
1. Notice that it imports the `node-persist` module and it is this module that reads and writes to and from the hard drive.
2. Run the test suites, this will run the unit tests for both the `todo.js` module and the routes file `index.js`. Note the total runtime of these tests.
2. This is the module that we need to mock.
3. This is the module that we need to mock.
2. Locate the `__mocks__` directory in the root directory of the project:
1. Notice that this contains a file called `node-persist.x.js`. This is the mock module. As soon as we change the name to `node-persist.js` it will be used instead of the nom module of the same name.
2. Notice that it exports exactly the same functions with the same signatures as used in the nam module.

0 comments on commit 0c0c9e0

Please sign in to comment.