add another small test

This commit is contained in:
Simone Taeggi 2022-11-29 22:12:07 +01:00
parent 4b6de6c56d
commit 0a68d2d9b6

View File

@ -23,6 +23,7 @@ describe('ADMIN | utils | fetchClient', () => {
const result = await apiInstance.interceptors.request.handlers[0].fulfilled({ headers: {} });
expect(result.headers.Authorization).toContain(`Bearer ${token}`);
expect(result.headers.Accept).toBe('application/json');
expect(apiInstance.interceptors.response.handlers[0].fulfilled('foo')).toBe('foo');
});
describe('Test the addInterceptor funcion', () => {
afterEach(() => {