spec: add more assertions to help smoke out the close all window failures (#13868)

This commit is contained in:
Samuel Attard 2018-08-01 13:32:07 +10:00 committed by GitHub
parent c52b3d921e
commit 4990b3990b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,8 +168,9 @@ describe('app module', () => {
const electronPath = remote.getGlobal('process').execPath
appProcess = ChildProcess.spawn(electronPath, [appPath])
appProcess.on('close', code => {
expect(code).to.equal(123)
appProcess.on('close', (code, signal) => {
expect(signal).to.equal(null, 'exit signal should be null, if you see this please tag @MarshallOfSound')
expect(code).to.equal(123, 'exit code should be 123, if you see this please tag @MarshallOfSound')
done()
})
})