mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-20 05:26:20 +00:00
Move more components to shlink-web-component when applicable
This commit is contained in:
@@ -64,15 +64,4 @@ describe('HttpClient', () => {
|
||||
await expect(httpClient.fetchJson('')).rejects.toEqual(theError);
|
||||
});
|
||||
});
|
||||
|
||||
describe('fetchBlob', () => {
|
||||
it('returns response as blob', async () => {
|
||||
const theBlob = new Blob();
|
||||
fetch.mockResolvedValue({ blob: () => theBlob });
|
||||
|
||||
const result = await httpClient.fetchBlob('');
|
||||
|
||||
expect(result).toEqual(theBlob);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user