From 536726e9ee43178fc0728674389511ea87dfd491 Mon Sep 17 00:00:00 2001 From: acammies <acammies@redhat.com> Date: Tue, 17 Apr 2018 16:59:56 +0200 Subject: [PATCH] small change for mocha --- exercises/3-revenge-of-the-automated-testing/README.md | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/exercises/3-revenge-of-the-automated-testing/README.md b/exercises/3-revenge-of-the-automated-testing/README.md index a9464eb..a64ef2c 100644 --- a/exercises/3-revenge-of-the-automated-testing/README.md +++ b/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 -- Gitblit v1.9.3