       rootViewState = rootView.serialize()
       rootView.deactivate()
       RootView.deserialize(rootViewState)
-      atom.loadPackage("tree-view")
+      window.loadPackage("tree-view")
       treeView = rootView.find(".tree-view").view()
 
       expect(treeView).toExist()


      new RootView(rootDirPath)
      project = rootView.project
      atom.loadPackage('tree-view')
      rootView.trigger 'tree-view:toggle'
      treeView = rootView.find(".tree-view").view()
      dirView = treeView.root.entries.find('.directory:contains(test-dir)').view()

    new RootView(require.resolve('fixtures/tree-view'))
    project = rootView.project

    window.loadPackage("tree-view")
    rootView.trigger 'tree-view:toggle'
    treeView = rootView.find(".tree-view").view()
    treeView.root = treeView.find('ol > li:first').view()
