Restor full function syntax to custom Mocha reporter
This commit is contained in:
parent
a2202d7d8c
commit
e828253ef0
2 changed files with 3 additions and 3 deletions
|
@ -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', () => {
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue