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 0da3ff993..142fc3e53 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";
+import { assert, assertEquals, assertMatch } from "./test_util.ts";
-unitTest(function errorStackMessageLine() {
+Deno.test(function errorStackMessageLine() {
const e1 = new Error();
e1.name = "Foo";
e1.message = "bar";
@@ -41,7 +41,7 @@ unitTest(function errorStackMessageLine() {
assertMatch(e6.stack!, /^null: null\n/);
});
-unitTest(function captureStackTrace() {
+Deno.test(function captureStackTrace() {
function foo() {
const error = new Error();
const stack1 = error.stack!;
@@ -55,7 +55,7 @@ unitTest(function captureStackTrace() {
// FIXME(bartlomieju): no longer works after migrating
// to JavaScript runtime code
-unitTest({ ignore: true }, function applySourceMap() {
+Deno.test({ ignore: true }, function applySourceMap() {
const result = Deno.applySourceMap({
fileName: "CLI_SNAPSHOT.js",
lineNumber: 23,