Skip to content

Commit 2a897e9

Browse files
committed
Added test.
1 parent f87abeb commit 2a897e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Tinytest.add('blocking', function (test) {
1111

1212
test.equal(blocking(function (a, b, cb) { cb(null, a + b) })(1, 2), 3);
1313

14+
test.equal(blocking(function (a, b, f, cb) { cb(null, f(a, b)) })(1, 2, function (a, b) {return a + b}), 3);
15+
1416
test.throws(function () {
1517
blocking(function (a, b, cb) { cb("test error") })(1, 2)
1618
}, /^test error$/);

0 commit comments

Comments
 (0)