Rename abbreviated assertions in std/testing (#6118)

This commit is contained in:
Casper Beyer 2020-06-06 11:43:00 +08:00 committed by GitHub
parent c137b11abf
commit ed5aedc6b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 141 additions and 130 deletions

View file

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