From e36edfdb3fd4709358a5f499f13cfe3d53c2b4f7 Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Wed, 6 Mar 2019 22:39:50 +0100 Subject: Testing refactor (denoland/deno_std#240) Original: https://github.com/denoland/deno_std/commit/e1d5c00279132aa639030c6c6d9b4e308bd4775e --- examples/test.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'examples') 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); }); -- cgit v1.2.3