mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-28 00:52:29 +03:00
Add failing spec for missing stdout/stderr
This commit is contained in:
parent
1761f19efb
commit
f4284b91ea
@ -71,6 +71,17 @@ describe "Task", ->
|
||||
expect(stdout.listeners('data').length).toBe 0
|
||||
expect(stderr.listeners('data').length).toBe 0
|
||||
|
||||
task = new Task(require.resolve('./fixtures/task-spec-handler'))
|
||||
task.start()
|
||||
|
||||
# Sometimes process don't have stdout/stderr
|
||||
task.childProcess.stdout = null
|
||||
task.childProcess.stderr = null
|
||||
|
||||
task.terminate()
|
||||
|
||||
expect(-> task.terminate()).not.toThrow()
|
||||
|
||||
describe "::cancel()", ->
|
||||
it "dispatches 'task:cancelled' when invoked on an active task", ->
|
||||
task = new Task(require.resolve('./fixtures/task-spec-handler'))
|
||||
|
Loading…
Reference in New Issue
Block a user