mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
15 lines
470 B
CoffeeScript
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)
|