Fix failing test on Windows

The exit code tests include an assert on the output we get from a
spawned electron process. This doesn't currently work on Windows, so we
skip it for now
This commit is contained in:
Eran Tiktin 2016-01-11 01:33:22 +02:00
parent c5dee6a3d8
commit f1d388fb36

View file

@ -44,6 +44,9 @@ describe 'app module', ->
output = '' output = ''
appProcess.stdout.on 'data', (data) -> output += data appProcess.stdout.on 'data', (data) -> output += data
appProcess.on 'close', (code) -> appProcess.on 'close', (code) ->
# We skip the following assert on Windows, since we can't currently get
# stdout from a spawned electron process on Windows
if process.platform isnt 'win32'
assert.notEqual output.indexOf('Exit event with code: 123'), -1 assert.notEqual output.indexOf('Exit event with code: 123'), -1
assert.equal code, 123 assert.equal code, 123
done() done()