mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
Wait for execute promise to prevent leaking subscriptions
This commit is contained in:
parent
53dde09523
commit
b4cbffd978
@ -554,4 +554,7 @@ describe "CommandPanel", ->
|
||||
rootView.open('binary-file.png')
|
||||
rootView.trigger 'command-panel:toggle'
|
||||
|
||||
expect(-> commandPanel.execute('Xx/sort/')).not.toThrow()
|
||||
executePromise = null
|
||||
expect(-> executePromise = commandPanel.execute('Xx/sort/')).not.toThrow()
|
||||
|
||||
waitsForPromise -> executePromise
|
||||
|
Loading…
Reference in New Issue
Block a user