Skip to content

Commit

Permalink
Remove check type
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaidong committed Aug 19, 2022
1 parent a7c5032 commit b5efa39
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/utils/retrieve.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,6 @@ describe('test retrieve() method', () => {
nock.cleanAll()
})

test('test retrieve with unsupported content type', async () => {
const url = 'https://some.where/unsupported-content-type'
const { baseUrl, path } = parseUrl(url)
nock(baseUrl).get(path).reply(200, '', {
'Content-Type': 'abc/js'
})
expect(retrieve(url)).rejects.toThrow(new Error('Error: Invalid content type: "abc/js"'))
try {
await retrieve(url)
} catch (err) {
expect(err).toBeTruthy()
}
nock.cleanAll()
})

test('test retrieve with error 500', async () => {
const url = 'https://some.where/error/500'
const { baseUrl, path } = parseUrl(url)
Expand Down

0 comments on commit b5efa39

Please sign in to comment.