From 8fa4453aece23710e0c11c82cd08fecdbee3e5fd Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 17 Apr 2017 22:05:16 +0200 Subject: [PATCH] docs(aio): Testing Guide: Second matcher parameter --- aio/content/guide/testing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aio/content/guide/testing.md b/aio/content/guide/testing.md index 153a4493b3..29d9cb3971 100644 --- a/aio/content/guide/testing.md +++ b/aio/content/guide/testing.md @@ -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. 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. Of course specs that test the test helpers belong in the `test` folder, -next to their corresponding helper files. \ No newline at end of file +next to their corresponding helper files.