diff options
author | tokiedokie <thetokiedokie@gmail.com> | 2020-10-02 02:15:05 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 19:15:05 +0200 |
commit | 5590b97670206df957c43742f47601356982c658 (patch) | |
tree | f4440301a29948a3b653be1d6972c441797aa42b /std/testing | |
parent | e077b93d77d42f805ceb7a58cdc3c42255c0a30b (diff) |
refactor(std/testing): Get rid of default export and make std/testing/diff.ts private (#7592)
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.ts | 2 |
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]"; |