mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-27 01:02:14 +05:30
24 lines
440 B
JavaScript
24 lines
440 B
JavaScript
import 'app/polyfills';
|
|
import { configure } from 'enzyme';
|
|
import Adapter from 'enzyme-adapter-react-16';
|
|
|
|
configure({ adapter: new Adapter() });
|
|
|
|
if (!window.localStorage) {
|
|
window.localStorage = {
|
|
getItem(key) {
|
|
return this[key] || null;
|
|
},
|
|
setItem(key, value) {
|
|
this[key] = value;
|
|
},
|
|
removeItem(key) {
|
|
delete this[key];
|
|
},
|
|
};
|
|
|
|
window.sessionStorage = {
|
|
...window.localStorage,
|
|
};
|
|
}
|