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

Commit

Permalink
test: fix webworker tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Mar 21, 2017
1 parent 7eff97f commit a54e113
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/browser.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/* eslint-env mocha */
/* global self */
'use strict'

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

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

const idb = window.indexedDB ||
window.mozIndexedDB ||
window.webkitIndexedDB ||
window.msIndexedDB
const idb = self.indexedDB ||
self.mozIndexedDB ||
self.webkitIndexedDB ||
self.msIndexedDB

idb.deleteDatabase('ipfs')
idb.deleteDatabase('ipfs/blocks')
Expand Down

0 comments on commit a54e113

Please sign in to comment.