acammies
2018-04-17 287627c4c47b9c618313e39d3cc23a3b97a81a03
small change for mocha
1 files modified
12 ■■■■■ changed files
3-revenge-of-the-automated-testing/README.md 12 ●●●●● patch | view | raw | blame | history
3-revenge-of-the-automated-testing/README.md
@@ -78,9 +78,19 @@
  - There are 12 Frontend test files stored in these directories: `todolist-fe/tests/unit/vue-components/*` & `todolist-fe/tests/unit/javascript/*`
2. Explanation of JS test syntax through Bananalogy:
2. Explanation of Mocha and js test syntax through Bananalogy:
![todoitem-fail-test](../images/exercise3/bdd-bananas.png)
* `describe` is used to group tests together into a collection about a particular
2. Visit [mochajs.org](https://mochajs.org/) for more in-depth documentation.
* `describe` is used to group tests together into a collection asserting some feature; for example the get all todos api.
* `it` is an individual test statement and should contain an `expect` or a `should` statement asserting behaviour of the API under test.
### Part 1 - Tests in our Pipeline