@@ -6,7 +6,6 @@ os = require 'os'
66{remote , shell } =  require  ' electron' 
77Directory  =  require  ' ../lib/directory' 
88eventHelpers  =  require  " ./event-helpers" 
9- spyOnAsyncAndCallThrough  =  require (' ./async-helper' spyOnAsyncAndCallThrough 
109
1110isCaseSensitive  =  null 
1211isFilesystemCaseSensitive  =  -> 
@@ -3169,7 +3168,7 @@ describe "TreeView", ->
31693168
31703169        finishRemovalSpy  =  spyOn (treeView, ' finishRemoval' andCallThrough ()
31713170
3172-         removeSelectedPathsPermanentlySpy  =  spyOnAsyncAndCallThrough (treeView, ' removeSelectedPathsPermanently' 
3171+         removeSelectedPathsPermanentlySpy  =  spyOn (treeView, ' removeSelectedPathsPermanently' ). andCallThrough ( )
31733172        removeSelectedEntriesSpy  =  spyOn (treeView, ' removeSelectedEntries' andCallThrough ()
31743173
31753174        filePath  =  path .join (os .tmpdir (), ' non-project-file.txt' 
@@ -3181,26 +3180,23 @@ describe "TreeView", ->
31813180        waitsForPromise  -> 
31823181          atom .commands .dispatch (treeView .element , ' tree-view:remove-permanently' 
31833182
3184-         waitsFor  -> 
3185-           removeSelectedPathsPermanentlySpy .calledWith  isnt  undefined 
3186- 
31873183        waitsFor  ' removeSelectedEntries amd removeSelectedPathsPermanently to be called' -> 
31883184          removeSelectedEntriesSpy .callCount  is  1  and 
31893185          removeSelectedEntriesSpy .mostRecentCall .args [0 ] is  true  and 
3190-           removeSelectedPathsPermanentlySpy .calledWith [0 ] is  [ filePath] 
3186+           removeSelectedPathsPermanentlySpy .mostRecentCall . args [0 ][ 0 ]  is  filePath
31913187
31923188        #  The internal functionality of the followings are already tested in treeview:remove
31933189        waitsFor  ' it calls onWillDeleteEntry' -> 
31943190          onWillDeleteEntrySpy .callCount  is  1  and 
3195-           onWillDeleteEntrySpy .mostRecentCall .args [0 ] is  { pathToDelete :   filePath} 
3191+           onWillDeleteEntrySpy .mostRecentCall .args [0 ]. pathToDelete  is  filePath
31963192
31973193        waitsFor  ' it calls onEntryDeleted' -> 
31983194          onEntryDeletedSpy .callCount  is  1  and 
3199-           onEntryDeletedSpy .mostRecentCall .args [0 ] is  { pathToDelete :   filePath} 
3195+           onEntryDeletedSpy .mostRecentCall .args [0 ]. pathToDelete  is  filePath
32003196
32013197        waitsFor  ' it calls finishRemoval' -> 
32023198          finishRemovalSpy .callCount  is  1  and 
3203-           finishRemovalSpy .mostRecentCall .args [0 ] is  removeSelectedPathsPermanentlySpy .calledWith [1 ][0 ]
3199+           finishRemovalSpy .mostRecentCall .args [0 ] is  removeSelectedPathsPermanentlySpy .mostRecentCall . args [1 ][0 ]
32043200
32053201  describe  " file system events" -> 
32063202    temporaryFilePath  =  null 
0 commit comments