🎨 clean up test

This commit is contained in:
Katrina Uychaco 2016-01-27 15:10:35 -07:00
parent e09c7a9911
commit 8d55bbcdea

View File

@ -819,9 +819,8 @@ describe "PackageManager", ->
expect(atom.packages.isPackageActive("package-with-missing-provided-services")).toBe true
expect(addErrorHandler.callCount).toBe 0
describe "serialization", ->
it "does not serialize packages that have not been activated called on their main module", ->
describe "::serialize", ->
it "does not serialize packages that threw an error during activation", ->
spyOn(console, 'warn')
badPack = null
waitsForPromise ->
@ -830,7 +829,7 @@ describe "PackageManager", ->
runs ->
spyOn(badPack.mainModule, 'serialize').andCallThrough()
atom.packages.serializePackage(badPack)
atom.packages.serialize()
expect(badPack.mainModule.serialize).not.toHaveBeenCalled()
it "absorbs exceptions that are thrown by the package module's serialize method", ->