diff options
Diffstat (limited to 'testing/README.md')
-rw-r--r-- | testing/README.md | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/testing/README.md b/testing/README.md index 3db9f58e2..88923c1c9 100644 --- a/testing/README.md +++ b/testing/README.md @@ -89,11 +89,9 @@ Using `assertThrows()`: ```ts test(function doesThrow(): void { - assertThrows( - (): void => { - throw new TypeError("hello world!"); - } - ); + assertThrows((): void => { + throw new TypeError("hello world!"); + }); assertThrows((): void => { throw new TypeError("hello world!"); }, TypeError); @@ -108,11 +106,9 @@ test(function doesThrow(): void { // This test will not pass test(function fails(): void { - assertThrows( - (): void => { - console.log("Hello world"); - } - ); + assertThrows((): void => { + console.log("Hello world"); + }); }); ``` |