Skip to content

Commit

Permalink
refactor(assert,expect): import internal APIs from more specific paths (
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k authored Sep 9, 2024
1 parent 766d9c4 commit b3e1ebb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion assert/equals.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.
import { equal } from "./equal.ts";
import { buildMessage, diff, diffStr, format } from "@std/internal";
import { buildMessage } from "@std/internal/build-message";
import { diff } from "@std/internal/diff";
import { diffStr } from "@std/internal/diff-str";
import { format } from "@std/internal/format";

import { AssertionError } from "./assertion_error.ts";

/**
Expand Down
6 changes: 5 additions & 1 deletion assert/strict_equals.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.
import { buildMessage, diff, diffStr, format, red } from "@std/internal";
import { buildMessage } from "@std/internal/build-message";
import { diff } from "@std/internal/diff";
import { diffStr } from "@std/internal/diff-str";
import { format } from "@std/internal/format";
import { red } from "@std/internal/styles";
import { AssertionError } from "./assertion_error.ts";

/**
Expand Down
5 changes: 4 additions & 1 deletion expect/_build_message.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

import { buildMessage, diff, diffStr, format } from "@std/internal";
import { buildMessage } from "@std/internal/build-message";
import { diff } from "@std/internal/diff";
import { diffStr } from "@std/internal/diff-str";
import { format } from "@std/internal/format";
import type { EqualOptions } from "./_types.ts";

type EqualErrorMessageOptions = Pick<
Expand Down

0 comments on commit b3e1ebb

Please sign in to comment.