mirror of
https://github.com/strapi/strapi.git
synced 2025-09-18 13:02:18 +00:00
add another small test
This commit is contained in:
parent
4b6de6c56d
commit
0a68d2d9b6
@ -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(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user