summaryrefslogtreecommitdiff
path: root/examples/test.ts
diff options
context:
space:
mode:
authorVincent LE GOFF <g_n_s@hotmail.fr>2019-03-06 22:39:50 +0100
committerRyan Dahl <ry@tinyclouds.org>2019-03-06 16:39:50 -0500
commite36edfdb3fd4709358a5f499f13cfe3d53c2b4f7 (patch)
tree1baef3f876a5e75288c3ec9056cdb93dd6b5787f /examples/test.ts
parentd29957ad17956016c35a04f5f1f98565e58e8a2e (diff)
Testing refactor (denoland/deno_std#240)
Original: https://github.com/denoland/deno_std/commit/e1d5c00279132aa639030c6c6d9b4e308bd4775e
Diffstat (limited to 'examples/test.ts')
-rw-r--r--examples/test.ts9
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);
});