Restor full function syntax to custom Mocha reporter

This commit is contained in:
Scott Nonnenberg 2018-11-07 16:53:41 -08:00
parent a2202d7d8c
commit e828253ef0
2 changed files with 3 additions and 3 deletions

View File

@ -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', () => {

View File

@ -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;
});