Improving test exit
Test should always exit (app.stop()) either on success or failure.
This commit is contained in:
parent
12a35a05c6
commit
8121f913ca
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
})
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue