Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoz committed Oct 23, 2024
1 parent e508ca7 commit b962049
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ describe('eslint-plugin-typecheck', () => {

expect(code).toBe(1);
expect(output).toEqual([
"../pkg-one/one.ts(7,33): error TS2504: Type 'AsyncIterator<string, any, undefined>' must have a '[Symbol.asyncIterator]()' method that returns an async iterator.",
"../pkg-two/two.ts(8,33): error TS2504: Type 'AsyncIterator<string, any, undefined>' must have a '[Symbol.asyncIterator]()' method that returns an async iterator.",
"../pkg-one/one.ts(7,33): error TS2504: Type 'AsyncIterator<string, any, any>' must have a '[Symbol.asyncIterator]()' method that returns an async iterator.",
"../pkg-two/two.ts(8,33): error TS2504: Type 'AsyncIterator<string, any, any>' must have a '[Symbol.asyncIterator]()' method that returns an async iterator.",
'✖ Typecheck failed with 2 errors',
'ℹ Typecheck finished in TIME',
]);
Expand All @@ -221,6 +221,7 @@ describe('eslint-plugin-typecheck', () => {
"three.ts(13,7): error TS2322: Type 'boolean | undefined' is not assignable to type 'boolean'.",
" Type 'undefined' is not assignable to type 'boolean'.",
"three.ts(18,7): error TS2322: Type 'boolean | undefined' is not assignable to type 'boolean'.",
" Type 'undefined' is not assignable to type 'boolean'.",
'✖ Typecheck failed with 2 errors',
'ℹ Typecheck finished in TIME',
]);
Expand Down

0 comments on commit b962049

Please sign in to comment.