From c164e696d7f924fe785421058d834934b7014429 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 6 Jan 2019 14:19:15 -0500 Subject: Fix format globs (denoland/deno_std#87) Original: https://github.com/denoland/deno_std/commit/297cf0975eca194a677e6fadd7d753d62eb453c3 --- testing/README.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'testing') diff --git a/testing/README.md b/testing/README.md index f9f47eaa6..70968e3c7 100644 --- a/testing/README.md +++ b/testing/README.md @@ -1,24 +1,30 @@ -# Testing +# Testing ## Usage ```ts -import { test, assert, equal, assertEqual } from 'https://deno.land/x/testing/mod.ts'; +import { + test, + assert, + equal, + assertEqual +} from "https://deno.land/x/testing/mod.ts"; test({ - name: 'testing example', + name: "testing example", fn() { assert(equal("world", "world")); assert(!equal("hello", "world")); assert(equal({ hello: "world" }, { hello: "world" })); assert(!equal({ world: "hello" }, { hello: "world" })); assertEqual("world", "world"); - assertEqual({hello: "world"}, {hello: "world"}); - }, + assertEqual({ hello: "world" }, { hello: "world" }); + } }); ``` Short syntax (named function instead of object): + ```ts test(function example() { assert(equal("world", "world")); @@ -26,6 +32,6 @@ test(function example() { assert(equal({ hello: "world" }, { hello: "world" })); assert(!equal({ world: "hello" }, { hello: "world" })); assertEqual("world", "world"); - assertEqual({hello: "world"}, {hello: "world"}); + assertEqual({ hello: "world" }, { hello: "world" }); }); ``` -- cgit v1.2.3