@@ -24,7 +24,7 @@ jest.mock("fs-extra", () => {
2424 setWorkingFiles,
2525 getWorkingFiles,
2626 ensureDirSync : jest . fn ( ) ,
27- readFileSync : jest . fn ( path => getWorkingFiles ( ) [ path ] . contents ) ,
27+ readFileSync : jest . fn ( ( path ) => getWorkingFiles ( ) [ path ] . contents ) ,
2828 writeFileSync : jest . fn (
2929 ( path : string , contents : string , opts ?: { mode ?: number } ) => {
3030 getWorkingFiles ( ) [ path ] = {
@@ -33,12 +33,12 @@ jest.mock("fs-extra", () => {
3333 }
3434 } ,
3535 ) ,
36- unlinkSync : jest . fn ( path => delete getWorkingFiles ( ) [ path ] ) ,
36+ unlinkSync : jest . fn ( ( path ) => delete getWorkingFiles ( ) [ path ] ) ,
3737 moveSync : jest . fn ( ( from , to ) => {
3838 getWorkingFiles ( ) [ to ] = getWorkingFiles ( ) [ from ]
3939 delete getWorkingFiles ( ) [ from ]
4040 } ) ,
41- statSync : jest . fn ( path => getWorkingFiles ( ) [ path ] ) ,
41+ statSync : jest . fn ( ( path ) => getWorkingFiles ( ) [ path ] ) ,
4242 chmodSync : jest . fn ( ( path , mode ) => {
4343 const { contents } = getWorkingFiles ( ) [ path ]
4444 getWorkingFiles ( ) [ path ] = { contents, mode }
@@ -49,7 +49,7 @@ jest.mock("fs-extra", () => {
4949function writeFiles ( cwd : string , files : Files ) : void {
5050 const mkdirpSync = require ( "fs-extra/lib/mkdirs/index.js" ) . mkdirpSync
5151 const writeFileSync = require ( "fs" ) . writeFileSync
52- Object . keys ( files ) . forEach ( filePath => {
52+ Object . keys ( files ) . forEach ( ( filePath ) => {
5353 if ( ! filePath . startsWith ( ".git/" ) ) {
5454 mkdirpSync ( path . join ( cwd , path . dirname ( filePath ) ) )
5555 writeFileSync ( path . join ( cwd , filePath ) , files [ filePath ] . contents , {
@@ -62,7 +62,7 @@ function writeFiles(cwd: string, files: Files): void {
6262function removeLeadingSpaceOnBlankLines ( patchFileContents : string ) : string {
6363 return patchFileContents
6464 . split ( "\n" )
65- . map ( line => ( line === " " ? "" : line ) )
65+ . map ( ( line ) => ( line === " " ? "" : line ) )
6666 . join ( "\n" )
6767}
6868
0 commit comments