diff --git a/lib/__tests__/HookTester.js b/lib/__tests__/HookTester.js index 9d9ca37..b436fbd 100644 --- a/lib/__tests__/HookTester.js +++ b/lib/__tests__/HookTester.js @@ -666,13 +666,16 @@ class HookTester { } { - const hook = this.createHook(["x"], `${type}SinglePromiseWithUndefinedArg`); + const hook = this.createHook( + ["x"], + `${type}SinglePromiseWithUndefinedArg` + ); hook.tapPromise("promise", (arg) => { result[`${type}SinglePromiseWithUndefinedCalled1`] = arg; return Promise.resolve(undefined); }); - result[`${type}SinglePromiseWithUndefined`] = await this.gainResult((cb) => - hook[type](42, cb) + result[`${type}SinglePromiseWithUndefined`] = await this.gainResult( + (cb) => hook[type](42, cb) ); } @@ -699,13 +702,16 @@ class HookTester { } { - const hook = this.createHook(["x"], `${type}SinglePromiseWithEmptyStringArg`); + const hook = this.createHook( + ["x"], + `${type}SinglePromiseWithEmptyStringArg` + ); hook.tapPromise("promise", (arg) => { result[`${type}SinglePromiseWithEmptyStringArgCalled1`] = arg; - return Promise.resolve(''); + return Promise.resolve(""); }); - result[`${type}SinglePromiseWithEmptyStringArg`] = await this.gainResult((cb) => - hook[type](42, cb) + result[`${type}SinglePromiseWithEmptyStringArg`] = await this.gainResult( + (cb) => hook[type](42, cb) ); }