summaryrefslogtreecommitdiff
path: root/cli/js/console_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/console_test.ts')
-rw-r--r--cli/js/console_test.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/js/console_test.ts b/cli/js/console_test.ts
index b80dd8284..d9492cf2d 100644
--- a/cli/js/console_test.ts
+++ b/cli/js/console_test.ts
@@ -14,8 +14,8 @@ const customInspect = Deno.symbols.customInspect;
const {
Console,
stringifyArgs
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
-} = Deno[Deno.symbols.internal] as any;
+ // @ts-ignore TypeScript (as of 3.7) does not support indexing namespaces by symbol
+} = Deno[Deno.symbols.internal];
function stringify(...args: unknown[]): string {
return stringifyArgs(args).replace(/\n$/, "");
@@ -306,6 +306,7 @@ test(function consoleTestCallToStringOnLabel(): void {
for (const method of methods) {
let hasCalled = false;
+ // @ts-ignore
console[method]({
toString(): void {
hasCalled = true;
@@ -451,6 +452,7 @@ test(function consoleGroup(): void {
// console.group with console.warn test
test(function consoleGroupWarn(): void {
mockConsole((console, _out, _err, both): void => {
+ assert(both);
console.warn("1");
console.group();
console.warn("2");
@@ -694,6 +696,7 @@ test(function consoleDirXml(): void {
test(function consoleTrace(): void {
mockConsole((console, _out, err): void => {
console.trace("%s", "custom message");
+ assert(err);
assert(err.toString().includes("Trace: custom message"));
});
});