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

          atom.packages.activatePackage('language-javascript')

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

  describe "when the markdown preview view is requested by file URI", ->
    it "opens a preview editor and watches the file for changes", ->

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

      waitsFor ->
        MarkdownPreviewView::renderMarkdown.callCount > 0

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