Skip to content

Commit

Permalink
Update packages/controller-utils/src/util.test.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
  • Loading branch information
jiexi and Gudahtt authored Oct 17, 2024
1 parent 644f4d0 commit 109a7bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/controller-utils/src/util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,10 @@ describe('util', () => {

describe('isEqualCaseInsensitive', () => {
it('returns false for non-string values', () => {
// @ts-expect-error Invalid type for testing purposes
expect(util.isEqualCaseInsensitive(null, null)).toBe(false);
// @ts-expect-error Invalid type for testing purposes
expect(util.isEqualCaseInsensitive(5, 5)).toBe(false);
// @ts-expect-error Invalid type for testing purposes
expect(util.isEqualCaseInsensitive(null, 'test')).toBe(false);
// @ts-expect-error Invalid type for testing purposes
Expand Down

0 comments on commit 109a7bf

Please sign in to comment.