summaryrefslogtreecommitdiff
path: root/cli/tests/unit/console_test.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-05-27 00:02:16 +1000
committerGitHub <noreply@github.com>2020-05-26 10:02:16 -0400
commit228f9c207f8320908325a553c96e465da08fc617 (patch)
tree54f2aba9f577d713dcbed5882ae7ae9e53c7baaf /cli/tests/unit/console_test.ts
parent24c36fd8625df6b276108109478a62b4661a0b3f (diff)
Use ts-expect-error instead of ts-ignore. (#5869)
Diffstat (limited to 'cli/tests/unit/console_test.ts')
-rw-r--r--cli/tests/unit/console_test.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/tests/unit/console_test.ts b/cli/tests/unit/console_test.ts
index 02d71e4ca..35985dc1c 100644
--- a/cli/tests/unit/console_test.ts
+++ b/cli/tests/unit/console_test.ts
@@ -22,7 +22,7 @@ const customInspect = Deno.customInspect;
const {
Console,
stringifyArgs,
- // @ts-ignore TypeScript (as of 3.7) does not support indexing namespaces by symbol
+ // @ts-expect-error TypeScript (as of 3.7) does not support indexing namespaces by symbol
} = Deno[Deno.internal];
function stringify(...args: unknown[]): string {
@@ -590,7 +590,7 @@ unitTest(function consoleTestStringifyIterable() {
0, <120 empty items>
]`
);
-*/
+ */
});
unitTest(async function consoleTestStringifyPromises(): Promise<void> {
@@ -727,7 +727,6 @@ unitTest(function consoleTestCallToStringOnLabel(): void {
mockConsole((console) => {
for (const method of methods) {
let hasCalled = false;
- // @ts-ignore
console[method]({
toString(): void {
hasCalled = true;