From 61273085e40fb4d992eef4b1b5601e3567c80664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 11 Feb 2020 17:24:27 +0100 Subject: refactor: rewrite tests in std/ to use Deno.test (#3930) --- std/examples/test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'std/examples/test.ts') diff --git a/std/examples/test.ts b/std/examples/test.ts index 26dd989e4..641a2ef74 100644 --- a/std/examples/test.ts +++ b/std/examples/test.ts @@ -1,19 +1,18 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. const { run } = Deno; -import { test } from "../testing/mod.ts"; import { assertEquals } from "../testing/asserts.ts"; /** Example of how to do basic tests */ -test(function t1(): void { +Deno.test(function t1(): void { assertEquals("hello", "hello"); }); -test(function t2(): void { +Deno.test(function t2(): void { assertEquals("world", "world"); }); /** A more complicated test that runs a subprocess. */ -test(async function catSmoke(): Promise { +Deno.test(async function catSmoke(): Promise { const p = run({ args: [ Deno.execPath(), -- cgit v1.2.3