Pinafore-Web-Client-Frontend/tests/indexedDBShims.js

6 lines
161 B
JavaScript

import indexedDB from 'fake-indexeddb'
import IDBKeyRange from 'fake-indexeddb/build/FDBKeyRange'
global.indexedDB = indexedDB
global.IDBKeyRange = IDBKeyRange