@@ -666,13 +666,16 @@ class HookTester {
666666 }
667667
668668 {
669- const hook = this . createHook ( [ "x" ] , `${ type } SinglePromiseWithUndefinedArg` ) ;
669+ const hook = this . createHook (
670+ [ "x" ] ,
671+ `${ type } SinglePromiseWithUndefinedArg`
672+ ) ;
670673 hook . tapPromise ( "promise" , ( arg ) => {
671674 result [ `${ type } SinglePromiseWithUndefinedCalled1` ] = arg ;
672675 return Promise . resolve ( undefined ) ;
673676 } ) ;
674- result [ `${ type } SinglePromiseWithUndefined` ] = await this . gainResult ( ( cb ) =>
675- hook [ type ] ( 42 , cb )
677+ result [ `${ type } SinglePromiseWithUndefined` ] = await this . gainResult (
678+ ( cb ) => hook [ type ] ( 42 , cb )
676679 ) ;
677680 }
678681
@@ -699,13 +702,16 @@ class HookTester {
699702 }
700703
701704 {
702- const hook = this . createHook ( [ "x" ] , `${ type } SinglePromiseWithEmptyStringArg` ) ;
705+ const hook = this . createHook (
706+ [ "x" ] ,
707+ `${ type } SinglePromiseWithEmptyStringArg`
708+ ) ;
703709 hook . tapPromise ( "promise" , ( arg ) => {
704710 result [ `${ type } SinglePromiseWithEmptyStringArgCalled1` ] = arg ;
705- return Promise . resolve ( '' ) ;
711+ return Promise . resolve ( "" ) ;
706712 } ) ;
707- result [ `${ type } SinglePromiseWithEmptyStringArg` ] = await this . gainResult ( ( cb ) =>
708- hook [ type ] ( 42 , cb )
713+ result [ `${ type } SinglePromiseWithEmptyStringArg` ] = await this . gainResult (
714+ ( cb ) => hook [ type ] ( 42 , cb )
709715 ) ;
710716 }
711717
0 commit comments