summaryrefslogtreecommitdiff
path: root/js/console_test.ts
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2019-02-09 13:55:40 -0800
committerRyan Dahl <ry@tinyclouds.org>2019-02-09 16:55:40 -0500
commit1d36eb47eb882cb9305a6338019fa2a2b375d7b1 (patch)
tree4584aff9da784f3e05c4fb5314d5911772b4d655 /js/console_test.ts
parent1502051453bf16787a59f43004b24d553d39bd26 (diff)
Support scoped variables, unblock REPL async op, and REPL error colors (#1721)
Diffstat (limited to 'js/console_test.ts')
-rw-r--r--js/console_test.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/console_test.ts b/js/console_test.ts
index 577c8bf5d..f84dc247a 100644
--- a/js/console_test.ts
+++ b/js/console_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { Console, libdeno, stringifyArgs, inspect, write, stdout } from "deno";
-import { test, assertEqual } from "./test_util.ts";
+import { test, assertEqual, assert } from "./test_util.ts";
const console = new Console(libdeno.print);
@@ -245,7 +245,8 @@ test(function consoleTestError() {
try {
throw new MyError("This is an error");
} catch (e) {
- assertEqual(stringify(e).split("\n")[0], "MyError: This is an error");
+ assert(stringify(e).split("\n")[3]
+ .includes("MyError: This is an error"));
}
});