/*
 * Mock an API for Twitch.storage.legacy
 *
 * https://git-aws.internal.justin.tv/web/web/blob/39c88c601541782bece718abb7c21ff26d1ca707/app/assets/javascripts/twitch/storage.js
 */
export default class LegacyStorageMock {
  constructor() {
    this._storage = {};
  }
  get(key) {
    return this._storage[key];
  }
  set(key, value) {
    this._storage[key] = value;
  }
  del(key) {
    delete this._storage[key];
  }
}
