@@ -3169,7 +3169,7 @@ describe "TreeView", ->
31693169
31703170 finishRemovalSpy = spyOn (treeView, ' finishRemoval' ).andCallThrough ()
31713171
3172- removeSelectedPathsPermanentlySpy = spyOnAsyncAndCallThrough (treeView, ' removeSelectedPathsPermanently' )
3172+ removeSelectedPathsPermanentlySpy = spyOn (treeView, ' removeSelectedPathsPermanently' ). andCallThrough ( )
31733173 removeSelectedEntriesSpy = spyOn (treeView, ' removeSelectedEntries' ).andCallThrough ()
31743174
31753175 filePath = path .join (os .tmpdir (), ' non-project-file.txt' )
@@ -3181,26 +3181,23 @@ describe "TreeView", ->
31813181 waitsForPromise ->
31823182 atom .commands .dispatch (treeView .element , ' tree-view:remove-permanently' )
31833183
3184- waitsFor ->
3185- removeSelectedPathsPermanentlySpy .calledWith isnt undefined
3186-
31873184 waitsFor ' removeSelectedEntries amd removeSelectedPathsPermanently to be called' , ->
31883185 removeSelectedEntriesSpy .callCount is 1 and
31893186 removeSelectedEntriesSpy .mostRecentCall .args [0 ] is true and
3190- removeSelectedPathsPermanentlySpy .calledWith [0 ] is [ filePath]
3187+ removeSelectedPathsPermanentlySpy .mostRecentCall . args [0 ][ 0 ] is filePath
31913188
31923189 # The internal functionality of the followings are already tested in treeview:remove
31933190 waitsFor ' it calls onWillDeleteEntry' , ->
31943191 onWillDeleteEntrySpy .callCount is 1 and
3195- onWillDeleteEntrySpy .mostRecentCall .args [0 ] is { pathToDelete : filePath}
3192+ onWillDeleteEntrySpy .mostRecentCall .args [0 ]. pathToDelete is filePath
31963193
31973194 waitsFor ' it calls onEntryDeleted' , ->
31983195 onEntryDeletedSpy .callCount is 1 and
3199- onEntryDeletedSpy .mostRecentCall .args [0 ] is { pathToDelete : filePath}
3196+ onEntryDeletedSpy .mostRecentCall .args [0 ]. pathToDelete is filePath
32003197
32013198 waitsFor ' it calls finishRemoval' , ->
32023199 finishRemovalSpy .callCount is 1 and
3203- finishRemovalSpy .mostRecentCall .args [0 ] is removeSelectedPathsPermanentlySpy .calledWith [1 ][0 ]
3200+ finishRemovalSpy .mostRecentCall .args [0 ] is removeSelectedPathsPermanentlySpy .mostRecentCall . args [1 ][0 ]
32043201
32053202 describe " file system events" , ->
32063203 temporaryFilePath = null
0 commit comments