When only a file is specified, don't open the parent directory

This commit is contained in:
Ash Wilson
2018-12-20 15:59:41 -05:00
parent 16aebc3cc1
commit 01bd45ef4c
2 changed files with 44 additions and 22 deletions

View File

@@ -652,7 +652,7 @@ describe('AtomEnvironment', () => {
it("adds it to the project's paths", async () => {
const pathToOpen = __filename
await atom.openLocations([{pathToOpen}])
expect(atom.project.getPaths()[0]).toBe(__dirname)
expect(atom.project.getPaths()).toEqual([])
})
describe('then a second path is opened with forceAddToWindow', () => {