Add test for core.openPendingPaneItems setting

This commit is contained in:
Katrina Uychaco
2016-02-16 15:24:18 -08:00
parent ae26e6c8ca
commit c9150c3f73

View File

@@ -1532,3 +1532,14 @@ describe "Workspace", ->
atom.workspace.closeActivePaneItemOrEmptyPaneOrWindow()
expect(atom.close).toHaveBeenCalled()
describe "when the core.openPendingPaneItems option is falsey", ->
it "does not open item with `pending: true` option as pending", ->
editor = null
atom.config.set('core.openPendingPaneItems', false)
waitsForPromise ->
atom.workspace.open('sample.js', pending: true).then (o) -> editor = o
runs ->
expect(editor.isPending()).toBeFalsy()