How to use the fake-indexeddb/build/fakeIndexedDB.default function in fake-indexeddb

To help you get started, we’ve selected a few fake-indexeddb 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 popeindustries / sw-test-env / lib / createContext.js View on Github external
NotificationEvent,
    PushEvent,
    PushManager,
    PushSubscription,
    Request,
    Response,
    ServiceWorkerGlobalScope,
    ServiceWorkerRegistration,
    URL,
    console,
    clearImmediate,
    clearInterval,
    clearTimeout,
    exports: scriptModule.exports,
    fetch,
    indexedDB: fakeIndexedDB.default,
    location: contextlocation,
    module: scriptModule,
    origin,
    process,
    setImmediate,
    setTimeout,
    setInterval,
    self: globalScope,
    require: getRequire(contextpath)
  });

  return context;
};