Skip to content

Commit 0d1ca5e

Browse files
committed
Merge pull request #6 from tcr/jh-assert
making t.pass/fail call ok/not ok
2 parents 369e165 + aa188b7 commit 0d1ca5e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tinytap",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Tiny TAP tester and test runner.",
55
"main": "./src/tester.js",
66
"bin": {

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)