1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-14 10:01:51 -05:00

fix usage code syntax error (#318)

This commit is contained in:
迷渡 2019-04-05 19:19:13 +08:00 committed by Ryan Dahl
parent 1e589b9553
commit 7f4dae109e

View file

@ -51,8 +51,8 @@ import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
test({ test({
name: "testing example", name: "testing example",
fn() { fn() {
assertEquals("world", "world")); assertEquals("world", "world");
assertEquals({ hello: "world" }, { hello: "world" })); assertEquals({ hello: "world" }, { hello: "world" });
} }
}); });
@ -63,8 +63,8 @@ Short syntax (named function instead of object):
```ts ```ts
test(function example() { test(function example() {
assertEquals("world", "world")); assertEquals("world", "world");
assertEquals({ hello: "world" }, { hello: "world" })); assertEquals({ hello: "world" }, { hello: "world" });
}); });
``` ```