Reference package states on packages ivar

This commit is contained in:
Kevin Sawicki 2013-09-26 10:20:17 -07:00
parent 7cae014d09
commit 0c532b62ff

View File

@ -275,8 +275,8 @@ describe "the `atom` global", ->
atom.activatePackage('package-with-serialize-error', immediate: true)
atom.activatePackage('package-with-serialization', immediate: true)
atom.deactivatePackages()
expect(atom.packageStates['package-with-serialize-error']).toBeUndefined()
expect(atom.packageStates['package-with-serialization']).toEqual someNumber: 1
expect(atom.packages.packageStates['package-with-serialize-error']).toBeUndefined()
expect(atom.packages.packageStates['package-with-serialization']).toEqual someNumber: 1
expect(console.error).toHaveBeenCalled()
it "removes the package's grammars", ->