summaryrefslogtreecommitdiff
path: root/std/testing
diff options
context:
space:
mode:
Diffstat (limited to 'std/testing')
-rw-r--r--std/testing/_diff.ts (renamed from std/testing/diff.ts)2
-rw-r--r--std/testing/_diff_test.ts (renamed from std/testing/diff_test.ts)2
-rw-r--r--std/testing/asserts.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/std/testing/diff.ts b/std/testing/_diff.ts
index 3a9eca4bb..5c84e891f 100644
--- a/std/testing/diff.ts
+++ b/std/testing/_diff.ts
@@ -36,7 +36,7 @@ function createCommon<T>(A: T[], B: T[], reverse?: boolean): T[] {
return common;
}
-export default function diff<T>(A: T[], B: T[]): Array<DiffResult<T>> {
+export function diff<T>(A: T[], B: T[]): Array<DiffResult<T>> {
const prefixCommon = createCommon(A, B);
const suffixCommon = createCommon(
A.slice(prefixCommon.length),
diff --git a/std/testing/diff_test.ts b/std/testing/_diff_test.ts
index 33752d89f..211a34c34 100644
--- a/std/testing/diff_test.ts
+++ b/std/testing/_diff_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import diff from "./diff.ts";
+import { diff } from "./_diff.ts";
import { assertEquals } from "../testing/asserts.ts";
Deno.test({
diff --git a/std/testing/asserts.ts b/std/testing/asserts.ts
index 889a622fd..f93e043dc 100644
--- a/std/testing/asserts.ts
+++ b/std/testing/asserts.ts
@@ -3,7 +3,7 @@
* for AssertionError messages in browsers. */
import { bold, gray, green, red, stripColor, white } from "../fmt/colors.ts";
-import diff, { DiffResult, DiffType } from "./diff.ts";
+import { diff, DiffResult, DiffType } from "./_diff.ts";
const CAN_NOT_DISPLAY = "[Cannot display]";