@@ -18,7 +18,9 @@ describe('verifyAndPlaceBinary()', () => {
1818
1919 verifyAndPlaceBinary ( 'command' , './bin' , callback ) ;
2020
21- expect ( callback ) . toHaveBeenCalledWith ( 'Downloaded binary does not contain the binary specified in configuration - command' ) ;
21+ expect ( callback ) . toHaveBeenCalledWith (
22+ 'Downloaded binary does not contain the binary specified in configuration - command'
23+ ) ;
2224 } ) ;
2325
2426 it ( 'should call callback with error if installation path cannot be found' , ( ) => {
@@ -34,7 +36,9 @@ describe('verifyAndPlaceBinary()', () => {
3436
3537 it ( 'should call callback with null on success' , ( ) => {
3638 fs . existsSync . mockReturnValueOnce ( true ) ;
37- common . getInstallationPath . mockImplementationOnce ( ( cb ) => cb ( null , path . sep + path . join ( 'usr' , 'local' , 'bin' ) ) ) ;
39+ common . getInstallationPath . mockImplementationOnce ( ( cb ) =>
40+ cb ( null , path . sep + path . join ( 'usr' , 'local' , 'bin' ) )
41+ ) ;
3842
3943 verifyAndPlaceBinary ( 'command' , './bin' , callback ) ;
4044
@@ -43,10 +47,15 @@ describe('verifyAndPlaceBinary()', () => {
4347
4448 it ( 'should move the binary to installation directory' , ( ) => {
4549 fs . existsSync . mockReturnValueOnce ( true ) ;
46- common . getInstallationPath . mockImplementationOnce ( ( cb ) => cb ( null , path . sep + path . join ( 'usr' , 'local' , 'bin' ) ) ) ;
50+ common . getInstallationPath . mockImplementationOnce ( ( cb ) =>
51+ cb ( null , path . sep + path . join ( 'usr' , 'local' , 'bin' ) )
52+ ) ;
4753
4854 verifyAndPlaceBinary ( 'command' , './bin' , callback ) ;
4955
50- expect ( fs . copyFileSync ) . toHaveBeenCalledWith ( path . join ( 'bin' , 'command' ) , path . sep + path . join ( 'usr' , 'local' , 'bin' , 'command' ) ) ;
56+ expect ( fs . copyFileSync ) . toHaveBeenCalledWith (
57+ path . join ( 'bin' , 'command' ) ,
58+ path . sep + path . join ( 'usr' , 'local' , 'bin' , 'command' )
59+ ) ;
5160 } ) ;
5261} ) ;
0 commit comments