mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
* refactor: better support for different storages * test: updated tests * feat: export AxiosStorage * style: fix linting
12 lines
345 B
TypeScript
12 lines
345 B
TypeScript
/**
|
|
* @jest-environment jsdom
|
|
*/
|
|
|
|
import { BrowserAxiosStorage } from '../../src/storage/browser';
|
|
import { testStorage } from './storages';
|
|
|
|
describe('tests web storages', () => {
|
|
testStorage('local-storage', () => new BrowserAxiosStorage(localStorage));
|
|
testStorage('session-storage', () => new BrowserAxiosStorage(sessionStorage));
|
|
});
|