mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-23 21:49:54 +05:30
21 lines
407 B
JavaScript
21 lines
407 B
JavaScript
import 'app/polyfills';
|
|
import '@testing-library/jest-dom';
|
|
|
|
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,
|
|
};
|
|
}
|