summaryrefslogtreecommitdiff
path: root/cli/tests/unit/error_stack_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/error_stack_test.ts')
-rw-r--r--cli/tests/unit/error_stack_test.ts8
1 files changed, 4 insertions, 4 deletions
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,