docs(aio): Testing Guide: Second matcher parameter

This commit is contained in:
Andy 2017-04-17 22:05:16 +02:00 committed by Pete Bacon Darwin
parent 93d8f8cd63
commit 8fa4453aec
1 changed files with 2 additions and 2 deletions

View File

@ -1072,7 +1072,7 @@ The first is a sanity test; it confirms that the stubbed `UserService` is called
The second parameter to the Jasmine `it` (e.g., `'expected name'`) is an optional addendum. The second parameter to the Jasmine matcher (e.g., `'expected name'`) is an optional addendum.
If the expectation fails, Jasmine displays this addendum after the expectation failure message. If the expectation fails, Jasmine displays this addendum after the expectation failure message.
In a spec with multiple expectations, it can help clarify what went wrong and which expectation failed. In a spec with multiple expectations, it can help clarify what went wrong and which expectation failed.
@ -3963,4 +3963,4 @@ natural home next to any one file.
It's often better to create an appropriate folder for them in the `tests` directory. It's often better to create an appropriate folder for them in the `tests` directory.
Of course specs that test the test helpers belong in the `test` folder, Of course specs that test the test helpers belong in the `test` folder,
next to their corresponding helper files. next to their corresponding helper files.