mirror of
https://github.com/zaphar/test-tap.git
synced 2025-07-21 20:19:49 -04:00
fix: Keep track of the passed and failed counts
This commit is contained in:
parent
f84a7c1bcc
commit
1f6f7f8d16
@ -142,6 +142,7 @@ class Tap {
|
|||||||
* @param {string} description
|
* @param {string} description
|
||||||
*/
|
*/
|
||||||
pass(description) {
|
pass(description) {
|
||||||
|
this.passed++;
|
||||||
this.mk_tap('ok', description);
|
this.mk_tap('ok', description);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -149,6 +150,7 @@ class Tap {
|
|||||||
* @param {string} description
|
* @param {string} description
|
||||||
*/
|
*/
|
||||||
fail(description) {
|
fail(description) {
|
||||||
|
this.failed++;
|
||||||
this.mk_tap('not ok', description);
|
this.mk_tap('not ok', description);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user