mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
* Add 'storeClone' option to buildMemoryStorage function * fix lint issue * fix lint issue * add test for new storeClone option * fix linter issue * update comment * update code according to review * fix test * Update src/storage/memory.ts Add this comment to code coverage skip the structuredClone test Co-authored-by: Arthur Fiorette <github@arthur.place> * Update test/storage/memory.test.ts Co-authored-by: Arthur Fiorette <github@arthur.place> * fix test * fix indent * Update src/storage/memory.ts * Update test/storage/memory.test.ts * Update test/storage/memory.test.ts * Update test/storage/memory.test.ts * Update test/storage/memory.test.ts * refactor: docs and more --------- Co-authored-by: Arthur Fiorette <github@arthur.place> Co-authored-by: arthurfiorette <arthur.fiorette@gmail.com>
15 lines
336 B
TypeScript
15 lines
336 B
TypeScript
describe('tests __ACI_DEV__ usage', () => {
|
|
it('expects importing with __ACI_DEV__ true prints a warning', async () => {
|
|
expect(__ACI_DEV__).toBeTruthy();
|
|
|
|
const oldLog = console.error;
|
|
console.error = jest.fn();
|
|
|
|
await import('../src');
|
|
|
|
expect(console.error).toBeCalled();
|
|
|
|
console.error = oldLog;
|
|
});
|
|
});
|