             atom.workspace.getActiveEditor().setText("Hey!")
 
           waitsFor ->
-            MarkdownPreviewView.prototype.renderMarkdown.callCount > 0
+            MarkdownPreviewView::renderMarkdown.callCount > 0
 
           runs ->
             expect(previewPane).toHaveFocus()

        atom.workspaceView.getActiveView().trigger 'markdown-preview:show'

      waitsFor ->
        MarkdownPreviewView.prototype.renderMarkdown.callCount > 0

      runs ->
        expect(previewPane.getActiveItem()).toBe preview

          atom.workspaceView.getActiveView().trigger 'markdown-preview:show'

        waitsFor ->
          MarkdownPreviewView::renderMarkdown.callCount > 0

        runs ->
          expect(atom.workspaceView.getPanes()).toHaveLength 2
