Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit a54e113

Browse files
committed
test: fix webworker tests
1 parent 7eff97f commit a54e113

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/browser.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/* eslint-env mocha */
2+
/* global self */
23
'use strict'
34

45
const series = require('async/series')
56
const IPFSRepo = require('ipfs-repo')
67

78
const tests = require('./block-service-test')
89

9-
const idb = window.indexedDB ||
10-
window.mozIndexedDB ||
11-
window.webkitIndexedDB ||
12-
window.msIndexedDB
10+
const idb = self.indexedDB ||
11+
self.mozIndexedDB ||
12+
self.webkitIndexedDB ||
13+
self.msIndexedDB
1314

1415
idb.deleteDatabase('ipfs')
1516
idb.deleteDatabase('ipfs/blocks')

0 commit comments

Comments
 (0)