Skip to content

Commit

Permalink
fix bug in plan output in verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeseda committed Nov 1, 2023
1 parent ea64a67 commit c3cb910
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"devDependencies": {
"@architect/eslint-config": "^2.1.2",
"@types/node": "^16.18.55",
"@types/node": "^16.18.60",
"eslint": "^8.52.0",
"tape": "^5.7.2"
},
Expand Down
5 changes: 2 additions & 3 deletions src/tap-arc.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,8 @@ export default function createParser (input, output, options = {}) {
reader.on('version', ({ version }) => {
P(`${_.strong('TAP version:')} ${version}`)
})
reader.on('plan', ({ plan, bad }) => {
const [ start, end ] = plan
P(`${_.strong('Plan:')} start=${start} end=${end} ${bad ? '(BAD)' : ''}`)
reader.on('plan', ({ start, end }) => {
P(`${_.strong('Plan:')} start=${start} end=${end}}`)
})
}

Expand Down

0 comments on commit c3cb910

Please sign in to comment.