2016-06-01 10:29:15 +05:30
|
|
|
import 'polyfills';
|
2019-01-15 02:10:25 +05:30
|
|
|
import { configure } from 'enzyme';
|
|
|
|
import Adapter from 'enzyme-adapter-react-16';
|
|
|
|
|
|
|
|
configure({ adapter: new Adapter() });
|
2016-07-30 16:14:43 +05:30
|
|
|
|
2016-12-04 17:41:23 +05:30
|
|
|
if (!window.localStorage) {
|
2019-11-27 14:33:32 +05:30
|
|
|
window.localStorage = {
|
|
|
|
getItem(key) {
|
|
|
|
return this[key] || null;
|
|
|
|
},
|
|
|
|
setItem(key, value) {
|
|
|
|
this[key] = value;
|
|
|
|
},
|
|
|
|
removeItem(key) {
|
|
|
|
delete this[key];
|
|
|
|
},
|
|
|
|
};
|
2016-12-04 17:41:23 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
window.sessionStorage = {
|
|
|
|
...window.localStorage,
|
|
|
|
};
|
2016-12-04 17:41:23 +05:30
|
|
|
}
|