Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tarasyuk committed Jan 13, 2023
1 parent e07c71e commit 98f7db6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

/** @type {(m: string) => string} */
const t5 = /** @satisfies {T3} */((m) => m.substring(0));
const t6 = /** @satisfies {Array.<number, number>} */ ([1, 2]);
const t6 = /** @satisfies {[number, number]} */ ([1, 2]);
const t7 = /** @satisfies {T4} */ ({ a: 'test' });
const t8 = /** @satisfies {T4} */ ({ a: 'test', b: 'test' });
~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/checkJsdocSatisfiesTag1.symbols
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const t5 = /** @satisfies {T3} */((m) => m.substring(0));
>m : Symbol(m, Decl(a.js, 27, 35))
>substring : Symbol(String.substring, Decl(lib.es5.d.ts, --, --))

const t6 = /** @satisfies {Array.<number, number>} */ ([1, 2]);
const t6 = /** @satisfies {[number, number]} */ ([1, 2]);
>t6 : Symbol(t6, Decl(a.js, 28, 5))

const t7 = /** @satisfies {T4} */ ({ a: 'test' });
Expand Down
8 changes: 4 additions & 4 deletions tests/baselines/reference/checkJsdocSatisfiesTag1.types
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ const t5 = /** @satisfies {T3} */((m) => m.substring(0));
>substring : (start: number, end?: number) => string
>0 : 0

const t6 = /** @satisfies {Array.<number, number>} */ ([1, 2]);
>t6 : number[]
>([1, 2]) : number[]
>[1, 2] : number[]
const t6 = /** @satisfies {[number, number]} */ ([1, 2]);
>t6 : [number, number]
>([1, 2]) : [number, number]
>[1, 2] : [number, number]
>1 : 1
>2 : 2

Expand Down
2 changes: 1 addition & 1 deletion tests/cases/conformance/jsdoc/checkJsdocSatisfiesTag1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ const t4 = /** @satisfies {T2} */ ({ a: "a" });

/** @type {(m: string) => string} */
const t5 = /** @satisfies {T3} */((m) => m.substring(0));
const t6 = /** @satisfies {Array.<number, number>} */ ([1, 2]);
const t6 = /** @satisfies {[number, number]} */ ([1, 2]);
const t7 = /** @satisfies {T4} */ ({ a: 'test' });
const t8 = /** @satisfies {T4} */ ({ a: 'test', b: 'test' });

0 comments on commit 98f7db6

Please sign in to comment.