mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
refactor(std/testing): Remove unuseful statement (#6486)
This commit is contained in:
parent
150c04aea7
commit
d1b44e7521
1 changed files with 0 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue