Skip to content

Commit

Permalink
test: types
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Aug 17, 2024
1 parent cf29dda commit e22419e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/i18n/getDirection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test('gets the direction of a locale', () => {

test('warns if the direction was not recognized', () => {
const warn = vi.spyOn(console, 'warn');
expect(getDirection(null)).toBe('ltr');
expect(getDirection(null as any)).toBe('ltr');

Check warning on line 10 in packages/core/src/i18n/getDirection.spec.ts

View workflow job for this annotation

GitHub Actions / ts-lint-test

Unexpected any. Specify a different type
expect(warn).toHaveBeenCalledTimes(1);
warn.mockRestore();
});

0 comments on commit e22419e

Please sign in to comment.