From 6637a2067a5ae936b3fec602dbb5b017133d83ad Mon Sep 17 00:00:00 2001 From: lionel-rowe Date: Thu, 31 Oct 2024 22:07:48 +0800 Subject: [PATCH] test(assert): change inert comments to @ts-expect-error directives (#6162) --- assert/strict_equals_test.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/assert/strict_equals_test.ts b/assert/strict_equals_test.ts index c22dca55f..df007ad0d 100644 --- a/assert/strict_equals_test.ts +++ b/assert/strict_equals_test.ts @@ -27,16 +27,14 @@ Deno.test({ const y = x as Record; const z = x as unknown; - // y.number; - // ~~~~~~ - // Property 'number' does not exist on type 'Record'.deno-ts(2339) + // @ts-expect-error Property 'number' does not exist on type 'Record'.deno-ts(2339) + y.number; assertStrictEquals(y, x); y.number; // ok - // z.number; - // ~ - // Object is of type 'unknown'.deno-ts(2571) + // @ts-expect-error 'z' is of type 'unknown'.deno-ts(18046) + z.number; assertStrictEquals(z, x); z.number; // ok