How to use the localforage.__setItemMocks function in localforage

To help you get started, we’ve selected a few localforage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-cosmos / react-cosmos / packages / react-cosmos-playground / src / components / ComponentPlayground / __tests__ / fixture-editor / pane-resize.js View on Github external
beforeEach(async () => {
    localForage.__setItemMocks({
      [FIXTURE_EDITOR_PANE_SIZE]: cachedSize
    });

    await mount();
  });
github react-cosmos / react-cosmos / packages / react-cosmos-playground / src / components / ComponentPlayground / __tests__ / fixture-editor / pane-portrait.js View on Github external
beforeEach(async () => {
      localForage.__setItemMocks({
        [FIXTURE_EDITOR_PANE_SIZE]: cachedSize
      });

      await mount();
    });
github react-cosmos / react-cosmos / packages / react-cosmos-playground / src / components / ComponentPlayground / __tests__ / fixture-editor / pane-landscape.js View on Github external
beforeEach(async () => {
      localForage.__setItemMocks({
        [FIXTURE_EDITOR_PANE_SIZE]: cachedSize
      });

      await mount();
    });
github react-cosmos / react-cosmos / packages / react-cosmos-playground / src / components / ComponentPlayground / __tests__ / left-nav-drag.js View on Github external
beforeEach(async () => {
      localForage.__setItemMocks({
        [LEFT_NAV_SIZE]: cachedSize
      });

      await mount();
    });