mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +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
|
@ -2,7 +2,7 @@
|
|||
import {
|
||||
assert,
|
||||
assertEquals,
|
||||
assertStringContains,
|
||||
assertStringIncludes,
|
||||
assertThrows,
|
||||
unitTest,
|
||||
} from "./test_util.ts";
|
||||
|
@ -310,8 +310,8 @@ unitTest(
|
|||
const decoder = new TextDecoder();
|
||||
const text = decoder.decode(fileContents);
|
||||
|
||||
assertStringContains(text, "error");
|
||||
assertStringContains(text, "output");
|
||||
assertStringIncludes(text, "error");
|
||||
assertStringIncludes(text, "output");
|
||||
},
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue