Files
atom/spec/app/atom-spec.coffee
Nathan Sobo 7dcb12ada2 RootView talks about packages and packageModules, not extensions
Now you call `rootView.activatePackage`, etc
2012-12-19 19:24:44 -07:00

15 lines
470 B
CoffeeScript

RootView = require 'root-view'
describe "the `atom` global", ->
describe ".loadPackage(name)", ->
extension = null
beforeEach ->
rootView = new RootView
extension = require "package-with-module"
it "requires and activates the package's main module if it exists", ->
spyOn(rootView, 'activatePackage').andCallThrough()
atom.loadPackage("package-with-module")
expect(rootView.activatePackage).toHaveBeenCalledWith(extension)