From c3cb91036a4092b84d3db28e07c68e272a18b797 Mon Sep 17 00:00:00 2001 From: Taylor Beseda Date: Wed, 1 Nov 2023 12:35:39 -0600 Subject: [PATCH] fix bug in plan output in verbose mode --- package-lock.json | 8 ++++---- package.json | 2 +- src/tap-arc.js | 5 ++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index d1b755d..737550f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,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" } @@ -252,9 +252,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "16.18.59", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.59.tgz", - "integrity": "sha512-PJ1w2cNeKUEdey4LiPra0ZuxZFOGvetswE8qHRriV/sUkL5Al4tTmPV9D2+Y/TPIxTHHgxTfRjZVKWhPw/ORhQ==", + "version": "16.18.60", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.60.tgz", + "integrity": "sha512-ZUGPWx5vKfN+G2/yN7pcSNLkIkXEvlwNaJEd4e0ppX7W2S8XAkdc/37hM4OUNJB9sa0p12AOvGvxL4JCPiz9DA==", "dev": true }, "node_modules/@ungap/structured-clone": { diff --git a/package.json b/package.json index aa384a3..85ee9ee 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/src/tap-arc.js b/src/tap-arc.js index 65ea3ec..4f99dbb 100644 --- a/src/tap-arc.js +++ b/src/tap-arc.js @@ -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}}`) }) }