mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
When only a file is specified, don't open the parent directory
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user