mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
refactor(std/testing): Get rid of default export and make std/testing/diff.ts private (#7592)
This commit is contained in:
parent
e077b93d77
commit
5590b97670
3 changed files with 3 additions and 3 deletions
|
@ -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),
|
|
@ -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({
|
|
@ -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]";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue