From f354d162586223c86fbe908c6645757e7e264511 Mon Sep 17 00:00:00 2001 From: "Mark Tyers (aa7401)" Date: Sun, 15 Sep 2019 16:09:45 +0100 Subject: [PATCH 1/2] removed formatting --- 07 Unit Testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/07 Unit Testing.md b/07 Unit Testing.md index 21837ed2..f8cde221 100644 --- a/07 Unit Testing.md +++ b/07 Unit Testing.md @@ -402,7 +402,7 @@ test('qty must be a number', async done => { }) ``` -As you can see, [`rejects`](https://jestjs.io/docs/en/expect#rejectsunwraps the reason for a rejected promise, if the Promise resolves the test automatically fails. This is the only way Jest can check for a thrown Error in your tests. +As you can see, [rejects](https://jestjs.io/docs/en/expect#rejectsunwraps the reason for a rejected promise, if the Promise resolves the test automatically fails. This is the only way Jest can check for a thrown Error in your tests. ### 2.4 Test Your Understanding From 53cc5e5a218e82d203785d268827d930045a9511 Mon Sep 17 00:00:00 2001 From: "Mark Tyers (aa7401)" Date: Sun, 15 Sep 2019 16:10:48 +0100 Subject: [PATCH 2/2] fixed link error --- 07 Unit Testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/07 Unit Testing.md b/07 Unit Testing.md index f8cde221..be7530a9 100644 --- a/07 Unit Testing.md +++ b/07 Unit Testing.md @@ -402,7 +402,7 @@ test('qty must be a number', async done => { }) ``` -As you can see, [rejects](https://jestjs.io/docs/en/expect#rejectsunwraps the reason for a rejected promise, if the Promise resolves the test automatically fails. This is the only way Jest can check for a thrown Error in your tests. +As you can see, [`rejects`](https://jestjs.io/docs/en/expect#rejects) unwraps the reason for a rejected promise, if the Promise resolves the test automatically fails. This is the only way Jest can check for a thrown Error in your tests. ### 2.4 Test Your Understanding