diff --git a/libtextsecure/test/_test.js b/libtextsecure/test/_test.js index 7e02fef191..b18a48ddae 100644 --- a/libtextsecure/test/_test.js +++ b/libtextsecure/test/_test.js @@ -6,7 +6,7 @@ window.PROTO_ROOT = '../../protos'; const OriginalReporter = mocha._reporter; -const SauceReporter = runner => { +const SauceReporter = function Constructor(runner) { const failedTests = []; runner.on('end', () => { diff --git a/test/_test.js b/test/_test.js index 56dd75b71d..fd9f8fcc21 100644 --- a/test/_test.js +++ b/test/_test.js @@ -6,7 +6,7 @@ window.PROTO_ROOT = '../protos'; const OriginalReporter = mocha._reporter; -const SauceReporter = runner => { +const SauceReporter = function Constructor(runner) { const failedTests = []; runner.on('end', () => { @@ -64,7 +64,7 @@ window.hexToArrayBuffer = str => { function deleteIndexedDB() { return new Promise((resolve, reject) => { - const idbReq = indexedDB.deleteIndexedDB('test'); + const idbReq = indexedDB.deleteDatabase('test'); idbReq.onsuccess = resolve; idbReq.error = reject; });