Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>
This commit is contained in:
Alex Eftimie
2024-05-23 11:49:53 +02:00
parent 4f92394b1a
commit 8b53ded4c5
-13
View File
@@ -58,19 +58,6 @@ describe('apis', () => {
);
});
// it('Sets Authorization if token is available', async () => {
// identityApi.getCredentials.mockResolvedValue({ token: 'token' });
// await client.query(query);
// expect(getBaseUrl).toHaveBeenLastCalledWith('search');
// expect(mockFetch).toHaveBeenLastCalledWith(
// expect.objectContaining({
// agent: undefined,
// query: 'term=',
// headers: { authorization: ["Bearer token"] }
// })
// );
// });
it('Resolves JSON from fetch response', async () => {
const result = { loading: false, error: '', value: {} };
json.mockReturnValueOnce(result);