diff --git a/tests/lib/test-utils.js b/tests/lib/test-utils.js index 2c58bb3..fd4461a 100644 --- a/tests/lib/test-utils.js +++ b/tests/lib/test-utils.js @@ -52,11 +52,13 @@ function shimIndexedDB(fn) { global.indexedDB = require('fake-indexeddb'); } - fn(); + var result = fn(); if(addShim) { delete global.indexedDB; } + + return result; } function setup(callback) {