Skip to content

Commit

Permalink
Add ts-ignore
Browse files Browse the repository at this point in the history
Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
styfle and ijjk committed May 5, 2022
1 parent f67daa0 commit 72db874
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/unit/image-optimizer/match-remote-pattern.test.ts
Expand Up @@ -170,6 +170,7 @@ describe('matchRemotePattern', () => {

it('should throw when hostname is missing', () => {
const p = { protocol: 'https' } as const
// @ts-ignore testing invalid input
expect(() => m(p, new URL('https://example.com'))).toThrow(
'Pattern should define hostname but found\n{"protocol":"https"}'
)
Expand Down

0 comments on commit 72db874

Please sign in to comment.