Skip to content

Commit

Permalink
Update src/utils/common.test.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Stacey <[email protected]>
  • Loading branch information
jpuri and Gudahtt authored Dec 19, 2024
1 parent e67fa81 commit 8e04103
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/common.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ describe('CommonUtils', () => {
expect(stripArrayTypeIfPresent('string')).toBe('string');
expect(stripArrayTypeIfPresent('string []')).toBe('string []');
expect(
stripArrayTypeIfPresent(undefined as unknown as string),
// @ts-expect-error Intentionally testing invalid input
stripArrayTypeIfPresent(undefined),
).toBeUndefined();
});
});
Expand Down

0 comments on commit 8e04103

Please sign in to comment.