summaryrefslogtreecommitdiff
path: root/testing/README.md
diff options
context:
space:
mode:
authorAxetroy <axetroy.dev@gmail.com>2019-09-12 11:31:23 +0800
committerRyan Dahl <ry@tinyclouds.org>2019-09-11 23:31:23 -0400
commit878a9a29e77bcaedd4242618ccf57d1be7dfd7d8 (patch)
tree53fd448fa9cf0295c2498f4f7970f1a720435dcc /testing/README.md
parent08087e921ede553d1eaeb682d264c3d4c217a3cd (diff)
bump prettier to 1.18.2 (denoland/deno_std#592)
Original: https://github.com/denoland/deno_std/commit/06958a4ada960665a48ac34f919423e0d8d16951
Diffstat (limited to 'testing/README.md')
-rw-r--r--testing/README.md16
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");
+ });
});
```