@@ -148,7 +148,9 @@ test('gets changed files for git', async () => {
148148
149149 let { changedFiles : files } = await getChangedFilesForRoots ( roots , { } ) ;
150150 expect (
151- Array . from ( files ) . map ( filePath => path . basename ( filePath ) ) . sort ( ) ,
151+ Array . from ( files )
152+ . map ( filePath => path . basename ( filePath ) )
153+ . sort ( ) ,
152154 ) . toEqual ( [ 'file1.txt' , 'file2.txt' , 'file3.txt' ] ) ;
153155
154156 run ( `${ GIT } add .` , DIR ) ;
@@ -161,7 +163,9 @@ test('gets changed files for git', async () => {
161163 lastCommit : true ,
162164 } ) ) ;
163165 expect (
164- Array . from ( files ) . map ( filePath => path . basename ( filePath ) ) . sort ( ) ,
166+ Array . from ( files )
167+ . map ( filePath => path . basename ( filePath ) )
168+ . sort ( ) ,
165169 ) . toEqual ( [ 'file1.txt' , 'file2.txt' , 'file3.txt' ] ) ;
166170
167171 writeFiles ( DIR , {
@@ -170,7 +174,9 @@ test('gets changed files for git', async () => {
170174
171175 ( { changedFiles : files } = await getChangedFilesForRoots ( roots , { } ) ) ;
172176 expect (
173- Array . from ( files ) . map ( filePath => path . basename ( filePath ) ) . sort ( ) ,
177+ Array . from ( files )
178+ . map ( filePath => path . basename ( filePath ) )
179+ . sort ( ) ,
174180 ) . toEqual ( [ 'file1.txt' ] ) ;
175181} ) ;
176182
@@ -198,7 +204,9 @@ test('gets changed files for hg', async () => {
198204
199205 let { changedFiles : files } = await getChangedFilesForRoots ( roots , { } ) ;
200206 expect (
201- Array . from ( files ) . map ( filePath => path . basename ( filePath ) ) . sort ( ) ,
207+ Array . from ( files )
208+ . map ( filePath => path . basename ( filePath ) )
209+ . sort ( ) ,
202210 ) . toEqual ( [ 'file1.txt' , 'file2.txt' , 'file3.txt' ] ) ;
203211
204212 run ( `${ HG } add .` , DIR ) ;
@@ -211,7 +219,9 @@ test('gets changed files for hg', async () => {
211219 lastCommit : true ,
212220 } ) ) ;
213221 expect (
214- Array . from ( files ) . map ( filePath => path . basename ( filePath ) ) . sort ( ) ,
222+ Array . from ( files )
223+ . map ( filePath => path . basename ( filePath ) )
224+ . sort ( ) ,
215225 ) . toEqual ( [ 'file1.txt' , 'file2.txt' , 'file3.txt' ] ) ;
216226
217227 writeFiles ( DIR , {
@@ -220,7 +230,9 @@ test('gets changed files for hg', async () => {
220230
221231 ( { changedFiles : files } = await getChangedFilesForRoots ( roots , { } ) ) ;
222232 expect (
223- Array . from ( files ) . map ( filePath => path . basename ( filePath ) ) . sort ( ) ,
233+ Array . from ( files )
234+ . map ( filePath => path . basename ( filePath ) )
235+ . sort ( ) ,
224236 ) . toEqual ( [ 'file1.txt' ] ) ;
225237
226238 run ( `${ HG } commit -m "test2"` , DIR ) ;
@@ -234,6 +246,8 @@ test('gets changed files for hg', async () => {
234246 } ) ) ;
235247 // Returns files from current uncommited state + the last commit
236248 expect (
237- Array . from ( files ) . map ( filePath => path . basename ( filePath ) ) . sort ( ) ,
249+ Array . from ( files )
250+ . map ( filePath => path . basename ( filePath ) )
251+ . sort ( ) ,
238252 ) . toEqual ( [ 'file1.txt' , 'file4.txt' ] ) ;
239253} ) ;
0 commit comments