Skip to content

Commit

Permalink
test(assert): change inert comments to @ts-expect-error directives (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel-rowe authored Oct 31, 2024
1 parent 6cc4f9f commit 6637a20
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions assert/strict_equals_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,14 @@ Deno.test({
const y = x as Record<never, never>;
const z = x as unknown;

// y.number;
// ~~~~~~
// Property 'number' does not exist on type 'Record<never, never>'.deno-ts(2339)
// @ts-expect-error Property 'number' does not exist on type 'Record<never, never>'.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
Expand Down

0 comments on commit 6637a20

Please sign in to comment.