Skip to content

Commit

Permalink
Merge pull request #45 from fagbokforlaget/fix-remove-ts-expect-error
Browse files Browse the repository at this point in the history
fix: remove ts-expect-error
  • Loading branch information
espresse authored Oct 8, 2024
2 parents efe497a + 240aa27 commit 95b94fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filter/parser.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ describe('Filter', () => {
});

expect(filterParams).toHaveProperty('$or');
// @ts-expect-error
expect(filterParams.$or.length).toEqual(1);
expect(filterParams.$or).toHaveProperty('length');
expect((filterParams.$or as []).length).toEqual(1);
});

it('should throw an error for unknown property', async () => {
Expand Down

0 comments on commit 95b94fe

Please sign in to comment.