mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
Rename abbreviated assertions in std/testing (#6118)
This commit is contained in:
parent
c137b11abf
commit
ed5aedc6b4
25 changed files with 141 additions and 130 deletions
|
@ -3,7 +3,7 @@ import {
|
|||
unitTest,
|
||||
assert,
|
||||
assertEquals,
|
||||
assertStrContains,
|
||||
assertStringContains,
|
||||
assertThrows,
|
||||
fail,
|
||||
} from "./test_util.ts";
|
||||
|
@ -18,7 +18,7 @@ unitTest({ perms: { net: true } }, async function fetchProtocolError(): Promise<
|
|||
err = err_;
|
||||
}
|
||||
assert(err instanceof TypeError);
|
||||
assertStrContains(err.message, "not supported");
|
||||
assertStringContains(err.message, "not supported");
|
||||
});
|
||||
|
||||
unitTest(
|
||||
|
@ -31,7 +31,7 @@ unitTest(
|
|||
err = err_;
|
||||
}
|
||||
assert(err instanceof Deno.errors.Http);
|
||||
assertStrContains(err.message, "error trying to connect");
|
||||
assertStringContains(err.message, "error trying to connect");
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue