summaryrefslogtreecommitdiff
path: root/std/path/common_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/path/common_test.ts')
-rw-r--r--std/path/common_test.ts44
1 files changed, 0 insertions, 44 deletions
diff --git a/std/path/common_test.ts b/std/path/common_test.ts
deleted file mode 100644
index b34b54741..000000000
--- a/std/path/common_test.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-import { assertEquals } from "../testing/asserts.ts";
-import { common } from "./mod.ts";
-
-Deno.test({
- name: "path - common - basic usage",
- fn() {
- const actual = common(
- [
- "file://deno/cli/js/deno.ts",
- "file://deno/std/path/mod.ts",
- "file://deno/cli/js/main.ts",
- ],
- "/",
- );
- assertEquals(actual, "file://deno/");
- },
-});
-
-Deno.test({
- name: "path - common - no shared",
- fn() {
- const actual = common(
- ["file://deno/cli/js/deno.ts", "https://deno.land/std/path/mod.ts"],
- "/",
- );
- assertEquals(actual, "");
- },
-});
-
-Deno.test({
- name: "path - common - windows sep",
- fn() {
- const actual = common(
- [
- "c:\\deno\\cli\\js\\deno.ts",
- "c:\\deno\\std\\path\\mod.ts",
- "c:\\deno\\cli\\js\\main.ts",
- ],
- "\\",
- );
- assertEquals(actual, "c:\\deno\\");
- },
-});