summaryrefslogtreecommitdiff
path: root/std/path
diff options
context:
space:
mode:
Diffstat (limited to 'std/path')
-rw-r--r--std/path/basename_test.ts2
-rw-r--r--std/path/dirname_test.ts2
-rw-r--r--std/path/extname_test.ts2
-rw-r--r--std/path/glob_test.ts5
-rw-r--r--std/path/globrex_test.ts2
-rw-r--r--std/path/isabsolute_test.ts2
-rw-r--r--std/path/join_test.ts2
-rw-r--r--std/path/parse_format_test.ts2
-rw-r--r--std/path/relative_test.ts2
-rw-r--r--std/path/resolve_test.ts3
-rw-r--r--std/path/zero_length_strings_test.ts3
11 files changed, 11 insertions, 16 deletions
diff --git a/std/path/basename_test.ts b/std/path/basename_test.ts
index c4e294501..0c933307a 100644
--- a/std/path/basename_test.ts
+++ b/std/path/basename_test.ts
@@ -1,7 +1,7 @@
// Copyright the Browserify authors. MIT License.
// Ported from https://github.com/browserify/path-browserify/
-import { test } from "../testing/mod.ts";
+const { test } = Deno;
import { assertEquals } from "../testing/asserts.ts";
import * as path from "./mod.ts";
diff --git a/std/path/dirname_test.ts b/std/path/dirname_test.ts
index ffcfa9993..4ce80eef3 100644
--- a/std/path/dirname_test.ts
+++ b/std/path/dirname_test.ts
@@ -1,7 +1,7 @@
// Copyright the Browserify authors. MIT License.
// Ported from https://github.com/browserify/path-browserify/
-import { test } from "../testing/mod.ts";
+const { test } = Deno;
import { assertEquals } from "../testing/asserts.ts";
import * as path from "./mod.ts";
diff --git a/std/path/extname_test.ts b/std/path/extname_test.ts
index e27222655..d9e14bb48 100644
--- a/std/path/extname_test.ts
+++ b/std/path/extname_test.ts
@@ -1,7 +1,7 @@
// Copyright the Browserify authors. MIT License.
// Ported from https://github.com/browserify/path-browserify/
-import { test } from "../testing/mod.ts";
+const { test } = Deno;
import { assertEquals } from "../testing/asserts.ts";
import * as path from "./mod.ts";
diff --git a/std/path/glob_test.ts b/std/path/glob_test.ts
index 7f67ca219..d8da1a47b 100644
--- a/std/path/glob_test.ts
+++ b/std/path/glob_test.ts
@@ -1,5 +1,4 @@
-const { mkdir } = Deno;
-import { test, runIfMain } from "../testing/mod.ts";
+const { mkdir, test } = Deno;
import { assert, assertEquals } from "../testing/asserts.ts";
import { testWalk, touch, walkArray } from "../fs/walk_test.ts";
import { globToRegExp, isGlob, joinGlobs, normalizeGlob } from "./glob.ts";
@@ -247,5 +246,3 @@ test(function normalizeGlobGlobstar(): void {
test(function joinGlobsGlobstar(): void {
assertEquals(joinGlobs(["**", ".."], { globstar: true }), `**${SEP}..`);
});
-
-runIfMain(import.meta);
diff --git a/std/path/globrex_test.ts b/std/path/globrex_test.ts
index f091ebe9b..29f039837 100644
--- a/std/path/globrex_test.ts
+++ b/std/path/globrex_test.ts
@@ -2,7 +2,7 @@
// MIT License
// Copyright (c) 2018 Terkel Gjervig Nielsen
-import { test } from "../testing/mod.ts";
+const { test } = Deno;
import { assertEquals } from "../testing/asserts.ts";
import { GlobrexOptions, globrex } from "./globrex.ts";
diff --git a/std/path/isabsolute_test.ts b/std/path/isabsolute_test.ts
index 9a472e18c..7db87c9cb 100644
--- a/std/path/isabsolute_test.ts
+++ b/std/path/isabsolute_test.ts
@@ -1,7 +1,7 @@
// Copyright the Browserify authors. MIT License.
// Ported from https://github.com/browserify/path-browserify/
-import { test } from "../testing/mod.ts";
+const { test } = Deno;
import { assertEquals } from "../testing/asserts.ts";
import * as path from "./mod.ts";
diff --git a/std/path/join_test.ts b/std/path/join_test.ts
index 878e89655..a73cf3679 100644
--- a/std/path/join_test.ts
+++ b/std/path/join_test.ts
@@ -1,4 +1,4 @@
-import { test } from "../testing/mod.ts";
+const { test } = Deno;
import { assertEquals } from "../testing/asserts.ts";
import * as path from "./mod.ts";
diff --git a/std/path/parse_format_test.ts b/std/path/parse_format_test.ts
index 6ecce7304..0a7e83bba 100644
--- a/std/path/parse_format_test.ts
+++ b/std/path/parse_format_test.ts
@@ -3,7 +3,7 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
// TODO(kt3k): fix any types in this file
-import { test } from "../testing/mod.ts";
+const { test } = Deno;
import { assertEquals } from "../testing/asserts.ts";
import * as path from "./mod.ts";
diff --git a/std/path/relative_test.ts b/std/path/relative_test.ts
index 8a130fbff..3fe5aab4b 100644
--- a/std/path/relative_test.ts
+++ b/std/path/relative_test.ts
@@ -1,7 +1,7 @@
// Copyright the Browserify authors. MIT License.
// Ported from https://github.com/browserify/path-browserify/
-import { test } from "../testing/mod.ts";
+const { test } = Deno;
import { assertEquals } from "../testing/asserts.ts";
import * as path from "./mod.ts";
diff --git a/std/path/resolve_test.ts b/std/path/resolve_test.ts
index 65a8a2d05..2fc49e398 100644
--- a/std/path/resolve_test.ts
+++ b/std/path/resolve_test.ts
@@ -1,8 +1,7 @@
// Copyright the Browserify authors. MIT License.
// Ported from https://github.com/browserify/path-browserify/
-const { cwd } = Deno;
-import { test } from "../testing/mod.ts";
+const { cwd, test } = Deno;
import { assertEquals } from "../testing/asserts.ts";
import * as path from "./mod.ts";
diff --git a/std/path/zero_length_strings_test.ts b/std/path/zero_length_strings_test.ts
index 5649f6999..128ba242d 100644
--- a/std/path/zero_length_strings_test.ts
+++ b/std/path/zero_length_strings_test.ts
@@ -1,8 +1,7 @@
// Copyright the Browserify authors. MIT License.
// Ported from https://github.com/browserify/path-browserify/
-const { cwd } = Deno;
-import { test } from "../testing/mod.ts";
+const { cwd, test } = Deno;
import { assertEquals } from "../testing/asserts.ts";
import * as path from "./mod.ts";