summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorYasser A.Idrissi <spookyframework@gmail.com>2020-06-26 04:17:58 +0200
committerGitHub <noreply@github.com>2020-06-25 22:17:58 -0400
commitd1b44e7521e4d68e4db68e05b6c4f764569fd5bc (patch)
treef29749ba7c21132e99ea0510919d9495de7cbfd2 /std
parent150c04aea73337b787fbb9f025648ca7285a5add (diff)
refactor(std/testing): Remove unuseful statement (#6486)
Diffstat (limited to 'std')
-rw-r--r--std/testing/asserts_test.ts3
1 files changed, 0 insertions, 3 deletions
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<string>");
});
});
@@ -489,7 +487,6 @@ Deno.test("Assert Throws Async Non-Error Fail", () => {
() => {
return assertThrowsAsync(() => {
throw undefined;
- return Promise.resolve("Ok!");
});
},
AssertionError,