mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 05:04:48 +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
|
@ -3,7 +3,7 @@
|
|||
import {
|
||||
assert,
|
||||
assertEquals,
|
||||
assertStringContains,
|
||||
assertStringIncludes,
|
||||
} from "../testing/asserts.ts";
|
||||
|
||||
import * as path from "../path/mod.ts";
|
||||
|
@ -67,6 +67,6 @@ Deno.test("requireStack", function () {
|
|||
try {
|
||||
hello();
|
||||
} catch (e) {
|
||||
assertStringContains(e.stack, "/tests/cjs/cjs_throw.js");
|
||||
assertStringIncludes(e.stack, "/tests/cjs/cjs_throw.js");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue