         atom.workspaceView.getActiveView().trigger 'symbols-view:go-to-declaration'
 
         waitsFor ->
-          SymbolsView.prototype.moveToPosition.callCount == 1
+          SymbolsView::moveToPosition.callCount is 1
 
         runs ->
           expect(editor.getCursorBufferPosition()).toEqual [2,0]
           atom.workspaceView.getActiveView().trigger 'symbols-view:return-from-declaration'
 
         waitsFor ->
-          SymbolsView.prototype.moveToPosition.callCount == 2
+          SymbolsView::moveToPosition.callCount is 2
 
         runs ->
           expect(editor.getCursorBufferPosition()).toEqual [6,24]

      atom.workspaceView.getActiveView().trigger 'symbols-view:go-to-declaration'

      waitsFor ->
        SymbolsView.prototype.moveToPosition.callCount == 1

      runs ->
        expect(editor.getCursorBufferPosition()).toEqual [2,0]

        symbolsView.confirmed(symbolsView.items[0])

      waitsFor ->
        SymbolsView::moveToPosition.callCount is 1

      runs ->
        expect(atom.workspaceView.getActivePaneItem().getPath()).toBe atom.project.resolve("tagged-duplicate.js")
