Remove duplicated localStorage mock (#22872)

This commit is contained in:
Ivana Huckova 2020-03-19 09:24:28 +01:00 committed by GitHub
parent db85c3e7b9
commit 0d88a49126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,5 @@
import store from '../store';
Object.assign(window, {
localStorage: {
removeItem(key: string) {
delete window.localStorage[key];
},
},
});
describe('store', () => {
it('should store', () => {
store.set('key1', '123');