From d6b29226aa37559fceeadb6641ec045fd195893b Mon Sep 17 00:00:00 2001 From: bcheidemann Date: Sun, 7 Mar 2021 15:02:29 +0000 Subject: [PATCH] refactor: return result of fn when wrapping in utils.shimIndexDB --- tests/lib/test-utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {