diff options
Diffstat (limited to 'examples/test.ts')
| -rw-r--r-- | examples/test.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/test.ts b/examples/test.ts index 30fdcfc4a..f94c39d40 100644 --- a/examples/test.ts +++ b/examples/test.ts @@ -1,14 +1,15 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. const { run } = Deno; -import { test, assertEqual } from "../testing/mod.ts"; +import { test } from "../testing/mod.ts"; +import { assertEq } from "../testing/asserts.ts"; /** Example of how to do basic tests */ test(function t1() { - assertEqual("hello", "hello"); + assertEq("hello", "hello"); }); test(function t2() { - assertEqual("world", "world"); + assertEq("world", "world"); }); /** A more complicated test that runs a subprocess. */ @@ -18,5 +19,5 @@ test(async function catSmoke() { stdout: "piped" }); const s = await p.status(); - assertEqual(s.code, 0); + assertEq(s.code, 0); }); |
