@@ -325,8 +325,8 @@ describe('FilePatchController', function() {
325
325
const workingDirPath = await cloneRepository ( 'symlinks' ) ;
326
326
const repository = await buildRepository ( workingDirPath ) ;
327
327
328
- // correctly handle symlinks on Windows
329
- repository . git . exec ( [ 'config' , 'core.symlinks' , 'true' ] ) ;
328
+ // correctly handle symlinks on Windows
329
+ await repository . git . exec ( [ 'config' , 'core.symlinks' , 'true' ] ) ;
330
330
331
331
const deletedSymlinkAddedFilePath = 'symlink.txt' ;
332
332
fs . unlinkSync ( path . join ( workingDirPath , deletedSymlinkAddedFilePath ) ) ;
@@ -389,23 +389,17 @@ describe('FilePatchController', function() {
389
389
assert . autocrlfEqual ( await repository . readFileFromIndex ( deletedFileAddedSymlinkPath ) , 'foo\n\n' ) ;
390
390
} ) ;
391
391
392
- it . only ( 'stages symlink change when staging added lines that depend on change' , async function ( ) {
392
+ it ( 'stages symlink change when staging added lines that depend on change' , async function ( ) {
393
393
const workingDirPath = await cloneRepository ( 'symlinks' ) ;
394
394
const repository = await buildRepository ( workingDirPath ) ;
395
395
396
396
// correctly handle symlinks on Windows
397
- repository . git . exec ( [ 'config' , 'core.symlinks' , 'true' ] ) ;
397
+ await repository . git . exec ( [ 'config' , 'core.symlinks' , 'true' ] ) ;
398
398
399
399
const deletedSymlinkAddedFilePath = 'symlink.txt' ;
400
400
fs . unlinkSync ( path . join ( workingDirPath , deletedSymlinkAddedFilePath ) ) ;
401
401
fs . writeFileSync ( path . join ( workingDirPath , deletedSymlinkAddedFilePath ) , 'qux\nfoo\nbar\nbaz\nzoo\n' , 'utf8' ) ;
402
-
403
- console . log ( workingDirPath ) ;
404
- debugger ;
405
- // cd into directory and view in atom. do hunks show up?
406
-
407
- // try adding 'initialStagingStatus: 'unstaged''
408
-
402
+
409
403
const component = createComponent ( repository , deletedSymlinkAddedFilePath ) ;
410
404
const wrapper = mount ( React . cloneElement ( component , { filePath : deletedSymlinkAddedFilePath } ) ) ;
411
405
@@ -493,7 +487,7 @@ describe('FilePatchController', function() {
493
487
const workingDirPath = await cloneRepository ( 'symlinks' ) ;
494
488
const repository = await buildRepository ( workingDirPath ) ;
495
489
496
- repository . git . exec ( [ 'config' , 'core.symlinks' , 'true' ] ) ;
490
+ await repository . git . exec ( [ 'config' , 'core.symlinks' , 'true' ] ) ;
497
491
498
492
const deletedSymlinkAddedFilePath = 'symlink.txt' ;
499
493
fs . unlinkSync ( path . join ( workingDirPath , deletedSymlinkAddedFilePath ) ) ;
0 commit comments