mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +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
|
@ -5,7 +5,7 @@ import { decode, encode } from "../encoding/utf8.ts";
|
|||
import {
|
||||
assert,
|
||||
assertEquals,
|
||||
assertStringContains,
|
||||
assertStringIncludes,
|
||||
} from "../testing/asserts.ts";
|
||||
import { dirname, fromFileUrl } from "../path/mod.ts";
|
||||
|
||||
|
@ -66,6 +66,6 @@ Deno.test("xevalCliSyntaxError", async function (): Promise<void> {
|
|||
});
|
||||
assertEquals(await p.status(), { code: 1, success: false });
|
||||
assertEquals(decode(await p.output()), "");
|
||||
assertStringContains(decode(await p.stderrOutput()), "SyntaxError");
|
||||
assertStringIncludes(decode(await p.stderrOutput()), "SyntaxError");
|
||||
p.close();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue