Skip to content

Commit 1705cf1

Browse files
committed
Make sure .pass and .fail calls get logged/counted
Should fix tcr#4, see also tapjs/tt#2
1 parent 9482034 commit 1705cf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tester.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ var t = Object.keys(assert).map(function (k) {
6262
}, {})
6363

6464
t.pass = function (m) {
65-
assert(true, m)
65+
t.ok(true, m)
6666
}
6767

6868
t.fail = function (m) {
69-
assert(false, m)
69+
t.ok(false, m)
7070
}
7171

7272
t.comment = function (m) {

0 commit comments

Comments
 (0)