Spy on atom.inDevMode()

This commit is contained in:
Kevin Sawicki 2014-07-31 08:42:26 -07:00
parent 700acdc5a2
commit f7187f1d5a

View File

@ -5,6 +5,9 @@ ThemePackage = require '../src/theme-package'
describe "Package", ->
describe "when the package contains incompatible native modules", ->
beforeEach ->
spyOn(atom, 'inDevMode').andReturn(false)
it "does not activate it", ->
packagePath = atom.project.resolve('packages/package-with-incompatible-native-module')
pack = new Package(packagePath)