1
0
mirror of https://github.com/nolanlawson/pinafore synced 2024-12-08 16:25:25 +01:00
Pinafore-Web-Client-Frontend/tests/indexedDBShims.js
Nolan Lawson 5cde48c2c5
test: add IndexedDB tests (#1075)
* test: add IndexedDB tests

Adds unit tests using fake-indexeddb.

* remove wtfnode dep
2019-03-03 18:34:10 -08:00

6 lines
161 B
JavaScript

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