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/fs/utils_test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'std/fs/utils_test.ts') diff --git a/std/fs/utils_test.ts b/std/fs/utils_test.ts index 751180177..93f4664e7 100644 --- a/std/fs/utils_test.ts +++ b/std/fs/utils_test.ts @@ -1,6 +1,5 @@ // Copyright the Browserify authors. MIT License. -import { test } from "../testing/mod.ts"; import { assertEquals } from "../testing/asserts.ts"; import * as path from "../path/mod.ts"; import { isSubdir, getFileInfoType, PathType } from "./utils.ts"; @@ -9,7 +8,7 @@ import { ensureDirSync } from "./ensure_dir.ts"; const testdataDir = path.resolve("fs", "testdata"); -test(function _isSubdir(): void { +Deno.test(function _isSubdir(): void { const pairs = [ ["", "", false, path.posix.sep], ["/first/second", "/first", false, path.posix.sep], @@ -34,7 +33,7 @@ test(function _isSubdir(): void { }); }); -test(function _getFileInfoType(): void { +Deno.test(function _getFileInfoType(): void { const pairs = [ [path.join(testdataDir, "file_type_1"), "file"], [path.join(testdataDir, "file_type_dir_1"), "dir"] -- cgit v1.2.3