From b3dfa86def0acea759e10cc572c1aa38fe0cc149 Mon Sep 17 00:00:00 2001 From: Nathan Vander Wilt Date: Fri, 25 Jul 2014 14:20:00 -0700 Subject: [PATCH] Make t.pass/t.fail work Was getting `TypeError: Object # has no method 'assert'` when using these. --- tt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tt.js b/tt.js index 10677f3..dba1b4e 100644 --- a/tt.js +++ b/tt.js @@ -57,11 +57,11 @@ var t = Object.keys(assert).map(function (k) { }, {}) t.pass = function (m) { - t.assert(true, m) + t.ok(true, m) } t.fail = function (m) { - t.assert(false, m) + t.ok(false, m) } t.comment = function (m) {