Skip to content

Commit

Permalink
refactor(std/testing): Remove unuseful statement (denoland#6486)
Browse files Browse the repository at this point in the history
  • Loading branch information
getspooky committed Jun 26, 2020
1 parent 150c04a commit d1b44e7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions std/testing/asserts_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>");
});
});

Expand Down Expand Up @@ -489,7 +487,6 @@ Deno.test("Assert Throws Async Non-Error Fail", () => {
() => {
return assertThrowsAsync(() => {
throw undefined;
return Promise.resolve("Ok!");
});
},
AssertionError,
Expand Down

0 comments on commit d1b44e7

Please sign in to comment.