@@ -686,28 +686,28 @@ describe('ResultsView', () => {
686686 } ) ;
687687
688688 it ( "copies the selected file path to the clipboard when there are multiple project folders" , async ( ) => {
689- const folder1 = temp . mkdirSync ( 'folder-1' )
690- const file1 = path . join ( folder1 , 'sample.txt' )
691- fs . writeFileSync ( file1 , 'items' )
689+ const folder1 = temp . mkdirSync ( 'folder-1' )
690+ const file1 = path . join ( folder1 , 'sample.txt' )
691+ fs . writeFileSync ( file1 , 'items' )
692692
693- const folder2 = temp . mkdirSync ( 'folder-2' )
694- const file2 = path . join ( folder2 , 'sample.txt' )
695- fs . writeFileSync ( file2 , 'items' )
693+ const folder2 = temp . mkdirSync ( 'folder-2' )
694+ const file2 = path . join ( folder2 , 'sample.txt' )
695+ fs . writeFileSync ( file2 , 'items' )
696696
697- atom . project . setPaths ( [ folder1 , folder2 ] ) ;
698- projectFindView . findEditor . setText ( 'items' ) ;
699- atom . commands . dispatch ( projectFindView . element , 'core:confirm' ) ;
700- await searchPromise ;
697+ atom . project . setPaths ( [ folder1 , folder2 ] ) ;
698+ projectFindView . findEditor . setText ( 'items' ) ;
699+ atom . commands . dispatch ( projectFindView . element , 'core:confirm' ) ;
700+ await searchPromise ;
701701
702- resultsView = getResultsView ( ) ;
703- await resultsView . heightInvalidationPromise ;
704- resultsView . selectFirstResult ( ) ;
705- resultsView . collapseResult ( ) ;
706- atom . commands . dispatch ( resultsView . element , 'find-and-replace:copy-path' ) ;
707- expect ( atom . clipboard . read ( ) ) . toBe ( path . join ( path . basename ( folder1 ) , path . basename ( file1 ) ) ) ;
708- atom . commands . dispatch ( resultsView . element , 'core:move-down' ) ;
709- atom . commands . dispatch ( resultsView . element , 'find-and-replace:copy-path' ) ;
710- expect ( atom . clipboard . read ( ) ) . toBe ( path . join ( path . basename ( folder2 ) , path . basename ( file2 ) ) ) ;
702+ resultsView = getResultsView ( ) ;
703+ await resultsView . heightInvalidationPromise ;
704+ resultsView . selectFirstResult ( ) ;
705+ resultsView . collapseResult ( ) ;
706+ atom . commands . dispatch ( resultsView . element , 'find-and-replace:copy-path' ) ;
707+ expect ( atom . clipboard . read ( ) ) . toBe ( path . join ( path . basename ( folder1 ) , path . basename ( file1 ) ) ) ;
708+ atom . commands . dispatch ( resultsView . element , 'core:move-down' ) ;
709+ atom . commands . dispatch ( resultsView . element , 'find-and-replace:copy-path' ) ;
710+ expect ( atom . clipboard . read ( ) ) . toBe ( path . join ( path . basename ( folder2 ) , path . basename ( file2 ) ) ) ;
711711 } ) ;
712712 } ) ;
713713
0 commit comments