text: class SessionStorageMock {
    constructor () {
      this.store = {}
    }
  
    clear () {
      this.store = {}
    }
  
    getItem (key) {
      return this.store[key]
    }
  
    setItem (key, value) {
      this.store[key] = value && value.toString()
    }
  
    removeItem (key) {
      this.store[key] = null
    }
  }
  
  global.sessionStorage = new SessionStorageMock()
  
  var localStorageMock = (function () {
    var store = {}
    return {
      getItem: function (key) {
        return store[key]
      },
      setItem: function (key, value) {
        store[key] = value.toString()
      },
      clear: function () {
        store = {}
      },
      removeItem: function (key) {
        delete store[key]
      }
    }
  })()
  Object.defineProperty(window, 'localStorage', { value: localStorageMock })
  