From 928a3e2854878861d274fdd4ea79da8133a84f39 Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Mon, 18 Sep 2017 11:20:51 -0400 Subject: [PATCH] Expect the deserialization promise to reject with inaccessible dirs --- spec/project-spec.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/project-spec.coffee b/spec/project-spec.coffee index 694e60c64..d88cbbf02 100644 --- a/spec/project-spec.coffee +++ b/spec/project-spec.coffee @@ -25,11 +25,14 @@ describe "Project", -> state = atom.project.serialize() state.paths.push('/directory/that/does/not/exist') + err = null waitsForPromise -> deserializedProject.deserialize(state, atom.deserializers) + .catch (e) -> err = e runs -> expect(deserializedProject.getPaths()).toEqual(atom.project.getPaths()) + expect(err.missingProjectPaths).toEqual ['/directory/that/does/not/exist'] it "does not include unretained buffers in the serialized state", -> waitsForPromise ->