From d1b44e7521e4d68e4db68e05b6c4f764569fd5bc Mon Sep 17 00:00:00 2001 From: "Yasser A.Idrissi" Date: Fri, 26 Jun 2020 04:17:58 +0200 Subject: refactor(std/testing): Remove unuseful statement (#6486) --- std/testing/asserts_test.ts | 3 --- 1 file changed, 3 deletions(-) (limited to 'std') diff --git a/std/testing/asserts_test.ts b/std/testing/asserts_test.ts index 35ce50031..5537b41e7 100644 --- a/std/testing/asserts_test.ts +++ b/std/testing/asserts_test.ts @@ -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"); }); }); @@ -489,7 +487,6 @@ Deno.test("Assert Throws Async Non-Error Fail", () => { () => { return assertThrowsAsync(() => { throw undefined; - return Promise.resolve("Ok!"); }); }, AssertionError, -- cgit v1.2.3