1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00

refactor(std/testing): Remove unuseful statement (#6486)

This commit is contained in:
Yasser A.Idrissi 2020-06-26 04:17:58 +02:00 committed by GitHub
parent 150c04aea7
commit d1b44e7521
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -260,14 +260,12 @@ Deno.test("testingAssertFailWithWrongErrorClass", function (): void {
Deno.test("testingAssertThrowsWithReturnType", () => {
assertThrows(() => {
throw new Error();
return "a string";
});
});
Deno.test("testingAssertThrowsAsyncWithReturnType", () => {
assertThrowsAsync(() => {
throw new Error();
return Promise.resolve("a Promise<string>");
});
});
@ -489,7 +487,6 @@ Deno.test("Assert Throws Async Non-Error Fail", () => {
() => {
return assertThrowsAsync(() => {
throw undefined;
return Promise.resolve("Ok!");
});
},
AssertionError,