         runs ->
           expect(console.warn).not.toHaveBeenCalled()
 
-    fit "passes the activate method the package's previously serialized state if it exists", ->
+    it "passes the activate method the package's previously serialized state if it exists", ->
       pack = atom.packages.loadPackage("package-with-serialization")
       waitsForPromise ->
         pack.activate()  # require main module

          expect(atom.packages.isPackageActive("package-with-missing-provided-services")).toBe true
          expect(addErrorHandler.callCount).toBe 0

  describe "::serialize", ->
    # TODO

  describe "::serializePackage(pack)", ->
    # afterEach ->
    #   atom.packages.unloadPackages()

    fit "does not serialize packages that have not been activated called on their main module", ->
      spyOn(console, 'warn')
      badPack = null
      waitsForPromise ->

        atom.packages.serializePackage(badPack)
        expect(badPack.mainModule.serialize).not.toHaveBeenCalled()

    it "absorbs exceptions that are thrown by the package module's serialize method", ->
      spyOn(console, 'error')

      waitsForPromise ->
