Add spec for exit code on event
This commit is contained in:
parent
63c0095efb
commit
aa82eddca8
3 changed files with 32 additions and 0 deletions
9
spec/fixtures/api/quit-app/main.js
vendored
Normal file
9
spec/fixtures/api/quit-app/main.js
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
var app = require('electron').app
|
||||
|
||||
app.on('ready', function () {
|
||||
app.exit(123)
|
||||
})
|
||||
|
||||
process.on('exit', function (code) {
|
||||
console.log('Exit event with code: ' + code)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue