Merge pull request #6043 from JimiC/patch-1

Improved test exit
This commit is contained in:
Kevin Sawicki
2016-06-14 10:07:57 -07:00
committed by GitHub

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()
})
```