Skip to content

Commit

Permalink
fix: defer final console.log()
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed May 15, 2023
1 parent 70d4c1f commit b524822
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions polendina.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ export class Polendina {
const port = server.address().port
puppeteer(this.outputDir, port, this._options.timeout, mode, this._options.runner, this._options.coverage)
.then((errors) => {
if (this._options.runner !== 'mocha') {
console.log() // whitespace pls
}
server.close(() => {
if (this._options.runner !== 'mocha') {
console.log() // whitespace pls
}
resolve(errors)
})
})
Expand Down

0 comments on commit b524822

Please sign in to comment.