mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Just include exit code in spec output
This commit is contained in:
@@ -44,7 +44,6 @@ describe 'app module', ->
|
||||
output = ''
|
||||
appProcess.stdout.on 'data', (data) -> output += data
|
||||
appProcess.on 'close', (code) ->
|
||||
console.log output
|
||||
assert.notEqual output.indexOf('Exit event with code: 123'), -1
|
||||
assert.equal code, 123
|
||||
done()
|
||||
|
||||
2
spec/fixtures/api/quit-app/main.js
vendored
2
spec/fixtures/api/quit-app/main.js
vendored
@@ -5,5 +5,5 @@ app.on('ready', function () {
|
||||
})
|
||||
|
||||
process.on('exit', function (code) {
|
||||
console.log('Exit event with code: ' + JSON.stringify(code, null, 2))
|
||||
console.log('Exit event with code: ' + code)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user