2019-12-07 21:02:00 +02:00
|
|
|
import 'app/polyfills';
|
2019-01-14 22:40:25 +02:00
|
|
|
import { configure } from 'enzyme';
|
|
|
|
import Adapter from 'enzyme-adapter-react-16';
|
|
|
|
|
|
|
|
configure({ adapter: new Adapter() });
|
2016-07-30 13:44:43 +03:00
|
|
|
|
2016-12-04 14:11:23 +02:00
|
|
|
if (!window.localStorage) {
|
2019-11-27 11:03:32 +02:00
|
|
|
window.localStorage = {
|
|
|
|
getItem(key) {
|
|
|
|
return this[key] || null;
|
|
|
|
},
|
|
|
|
setItem(key, value) {
|
|
|
|
this[key] = value;
|
|
|
|
},
|
|
|
|
removeItem(key) {
|
|
|
|
delete this[key];
|
|
|
|
},
|
|
|
|
};
|
2016-12-04 14:11:23 +02:00
|
|
|
|
2019-11-27 11:03:32 +02:00
|
|
|
window.sessionStorage = {
|
|
|
|
...window.localStorage,
|
|
|
|
};
|
2016-12-04 14:11:23 +02:00
|
|
|
}
|