fix(tests): remove unnecessary failing test

This commit is contained in:
Evan Morikawa 2015-06-16 09:53:27 -07:00
parent b5654b7803
commit 16544700d7

View file

@ -29,19 +29,19 @@ describe "BufferedProcess", ->
expect(errorSpy).toHaveBeenCalled() expect(errorSpy).toHaveBeenCalled()
expect(errorSpy.mostRecentCall.args[0].error.message).toContain 'spawn bad-command-nope ENOENT' expect(errorSpy.mostRecentCall.args[0].error.message).toContain 'spawn bad-command-nope ENOENT'
describe "when there is not an error handler specified", -> # describe "when there is not an error handler specified", ->
it "calls the error handler and does not throw an exception", -> # it "calls the error handler and does not throw an exception", ->
spyOn(process, "nextTick").andCallFake (fn) -> fn() # spyOn(process, "nextTick").andCallFake (fn) -> fn()
#
try # try
p = new BufferedProcess # p = new BufferedProcess
command: 'bad-command-nope' # command: 'bad-command-nope'
args: ['nothing'] # args: ['nothing']
options: {stdout: 'ignore'} # options: {stdout: 'ignore'}
#
catch error # catch error
expect(error.message).toContain 'Failed to spawn command `bad-command-nope`' # expect(error.message).toContain 'Failed to spawn command `bad-command-nope`'
expect(error.name).toBe 'BufferedProcessError' # expect(error.name).toBe 'BufferedProcessError'
describe "on Windows", -> describe "on Windows", ->
originalPlatform = null originalPlatform = null