From 3f0cf9619fce71a8898c495501df4bdb0e07e735 Mon Sep 17 00:00:00 2001 From: Leo K Date: Thu, 5 Aug 2021 13:08:58 +0200 Subject: refactor(cli/tests): remove unnecessary void return types (#11577) --- cli/tests/unit/error_stack_test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/tests/unit/error_stack_test.ts') diff --git a/cli/tests/unit/error_stack_test.ts b/cli/tests/unit/error_stack_test.ts index 1445124e9..0da3ff993 100644 --- a/cli/tests/unit/error_stack_test.ts +++ b/cli/tests/unit/error_stack_test.ts @@ -1,7 +1,7 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. import { assert, assertEquals, assertMatch, unitTest } from "./test_util.ts"; -unitTest(function errorStackMessageLine(): void { +unitTest(function errorStackMessageLine() { const e1 = new Error(); e1.name = "Foo"; e1.message = "bar"; @@ -41,8 +41,8 @@ unitTest(function errorStackMessageLine(): void { assertMatch(e6.stack!, /^null: null\n/); }); -unitTest(function captureStackTrace(): void { - function foo(): void { +unitTest(function captureStackTrace() { + function foo() { const error = new Error(); const stack1 = error.stack!; Error.captureStackTrace(error, foo); @@ -55,7 +55,7 @@ unitTest(function captureStackTrace(): void { // FIXME(bartlomieju): no longer works after migrating // to JavaScript runtime code -unitTest({ ignore: true }, function applySourceMap(): void { +unitTest({ ignore: true }, function applySourceMap() { const result = Deno.applySourceMap({ fileName: "CLI_SNAPSHOT.js", lineNumber: 23, -- cgit v1.2.3