diff options
Diffstat (limited to 'std/path/extname_test.ts')
-rw-r--r-- | std/path/extname_test.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/std/path/extname_test.ts b/std/path/extname_test.ts index d5c54a6de..7e1abf4bc 100644 --- a/std/path/extname_test.ts +++ b/std/path/extname_test.ts @@ -1,7 +1,5 @@ // Copyright the Browserify authors. MIT License. // Ported from https://github.com/browserify/path-browserify/ - -const { test } = Deno; import { assertEquals } from "../testing/asserts.ts"; import * as path from "./mod.ts"; @@ -52,7 +50,7 @@ const pairs = [ ["file.//", "."], ]; -test("extname", function () { +Deno.test("extname", function () { pairs.forEach(function (p) { const input = p[0]; const expected = p[1]; @@ -70,7 +68,7 @@ test("extname", function () { assertEquals(path.posix.extname("file.\\\\"), ".\\\\"); }); -test("extnameWin32", function () { +Deno.test("extnameWin32", function () { pairs.forEach(function (p) { const input = p[0].replace(slashRE, "\\"); const expected = p[1]; |