summaryrefslogtreecommitdiff
path: root/std/path/extname_test.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-06-12 20:23:38 +0100
committerGitHub <noreply@github.com>2020-06-12 15:23:38 -0400
commit1fff6f55c3ba98a10018c6d374795e612061e9b6 (patch)
tree12074b6d44736b11513d857e437f9e30a6bf65a4 /std/path/extname_test.ts
parent26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff)
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'std/path/extname_test.ts')
-rw-r--r--std/path/extname_test.ts6
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];