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:
Tim Reichen 2020-10-26 16:03:30 +01:00 committed by GitHub
parent 305a9c04ba
commit ae86cbb551
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 60 additions and 60 deletions

View file

@ -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");
}
});