message: Change mock storage to not change entries pointer
diff: @@ -64,9 +64,9 @@ export class MockLocalStorage {
  constructor() {
  if (window.TEST__MOCK_LOCAL_STORAGE_INIT) {
  - this.entries = {
  - ...window.TEST__MOCK_LOCAL_STORAGE_INIT,
  - };
  + for (let key in window.TEST__MOCK_LOCAL_STORAGE_INIT) {
  + this.setItem(key, window.TEST__MOCK_LOCAL_STORAGE_INIT[key]);
  + }
  }
  }
  @@ -83,6 +83,8 @@ export class MockLocalStorage {
  return Object.keys(this.entries).length;
  }
  clear() {
  - this.entries = {};
  + for (let key in this.entries) {
  + delete this.entries[key];
  + }
  }
  }
  