From 1f6f7f8d16e2ec84c5df2aba2e6b123472bda1ae Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Tue, 2 Apr 2024 19:43:57 -0400 Subject: [PATCH] fix: Keep track of the passed and failed counts --- src/TAP.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TAP.mjs b/src/TAP.mjs index d7f53ae..81070c4 100644 --- a/src/TAP.mjs +++ b/src/TAP.mjs @@ -142,6 +142,7 @@ class Tap { * @param {string} description */ pass(description) { + this.passed++; this.mk_tap('ok', description); }; @@ -149,6 +150,7 @@ class Tap { * @param {string} description */ fail(description) { + this.failed++; this.mk_tap('not ok', description); };