Improving test exit

Test should always exit (app.stop()) either on success or failure.
This commit is contained in:
Jimi (Dimitris) Charalampidis 2016-06-14 16:36:54 +03:00 committed by GitHub
parent 12a35a05c6
commit 8121f913ca

View file

@ -39,12 +39,12 @@ app.start().then(function () {
}).then(function (title) {
// Verify the window's title
assert.equal(title, 'My App')
}).then(function () {
// Stop the application
return app.stop()
}).catch(function (error) {
// Log any failures
console.error('Test failed', error.message)
}).then(function () {
// Stop the application
return app.stop()
})
```