mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Optionally throw an error when attempting to open a non-existent dir
This commit is contained in:
@@ -498,6 +498,11 @@ describe "Project", ->
|
||||
atom.project.addPath('/this-definitely/does-not-exist')
|
||||
expect(atom.project.getPaths()).toEqual(previousPaths)
|
||||
|
||||
it "optionally throws on non-existent directories", ->
|
||||
expect ->
|
||||
atom.project.addPath '/this-definitely/does-not-exist', mustExist: true
|
||||
.toThrow()
|
||||
|
||||
describe ".removePath(path)", ->
|
||||
onDidChangePathsSpy = null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user