mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 05:35:33 +00:00
rename(std/testing): rename assert*Contains to assert*Includes (#7951)
This commit renames two assertion functions to better align with JS API: - assertStringContains -> assertStringIncludes - assertArrayContains -> assertArrayIncludes
This commit is contained in:
parent
305a9c04ba
commit
ae86cbb551
16 changed files with 60 additions and 60 deletions
|
@ -11,7 +11,7 @@
|
|||
import {
|
||||
assert,
|
||||
assertEquals,
|
||||
assertStringContains,
|
||||
assertStringIncludes,
|
||||
unitTest,
|
||||
} from "./test_util.ts";
|
||||
import { stripColor } from "../../../std/fmt/colors.ts";
|
||||
|
@ -1703,5 +1703,5 @@ unitTest(function inspectProxy(): void {
|
|||
|
||||
unitTest(function inspectColors(): void {
|
||||
assertEquals(Deno.inspect(1), "1");
|
||||
assertStringContains(Deno.inspect(1, { colors: true }), "\x1b[");
|
||||
assertStringIncludes(Deno.inspect(1, { colors: true }), "\x1b[");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue