Skip to content

Commit

Permalink
Update fetch.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Nov 19, 2023
1 parent 9898ee0 commit 373fd53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cspell-io/src/node/file/fetch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe('fetch', () => {
test.each`
url | expected
${'https://x.example.com/'} | ${'getaddrinfo ENOTFOUND x.example.com'}
${'https://interglot.com/not_found/file.txt'} | ${'URL not found.'}
${'https://interglot.com/not_found/file.txt'} | ${/URL not found|getaddrinfo EAI_AGAIN/}
`('fetchURL with error', async ({ url, expected }) => {
url = new URL(url);
await expect(fetchURL(url)).rejects.toThrowError(expected);
Expand Down

0 comments on commit 373fd53

Please sign in to comment.