mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
fix: lint again
This commit is contained in:
parent
a2dbb5f100
commit
9bb2918607
@ -273,7 +273,9 @@ describe('test response interceptor', () => {
|
|||||||
const axios = mockAxios();
|
const axios = mockAxios();
|
||||||
|
|
||||||
const normal = await axios.get('url');
|
const normal = await axios.get('url');
|
||||||
const transformed = await axios.get('url', { transformResponse: (data) => [data] });
|
const transformed = await axios.get('url', {
|
||||||
|
transformResponse: (data: unknown) => [data]
|
||||||
|
});
|
||||||
|
|
||||||
expect(normal.data).toBe(true);
|
expect(normal.data).toBe(true);
|
||||||
expect(transformed.data).toStrictEqual([true]);
|
expect(transformed.data).toStrictEqual([true]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user