Skip to content

Commit

Permalink
Remove error property
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbuedo committed Apr 23, 2024
1 parent 945edb0 commit 933172c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/common/src/api/fetcher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ describe('fetcher', () => {
await expect(
fetcher({url: '/network-error', method: 'GET'}),
).rejects.toThrow(Api.Errors.Network)
await expect(
fetcher({url: '/network-error', method: 'GET'}),
).rejects.toHaveProperty('message', 'No response received')
})

it('throws generic Error for other cases', async () => {
Expand Down

0 comments on commit 933172c

Please sign in to comment.