diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-11 17:24:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 17:24:27 +0100 |
commit | 61273085e40fb4d992eef4b1b5601e3567c80664 (patch) | |
tree | 1ac0f401d4cb897bdb6f88e3a5c47fece2856f89 /std/fs/utils_test.ts | |
parent | e0bcecee6042b219c6626172851af5a25362b948 (diff) |
refactor: rewrite tests in std/ to use Deno.test (#3930)
Diffstat (limited to 'std/fs/utils_test.ts')
-rw-r--r-- | std/fs/utils_test.ts | 5 |
1 files changed, 2 insertions, 3 deletions
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"] |