acammies
2018-04-17 536726e9ee43178fc0728674389511ea87dfd491
small change for mocha
1 files modified
12 ■■■■■ changed files
exercises/3-revenge-of-the-automated-testing/README.md 12 ●●●●● patch | view | raw | blame | history
exercises/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