We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f87abeb commit 2a897e9Copy full SHA for 2a897e9
tests.js
@@ -11,6 +11,8 @@ Tinytest.add('blocking', function (test) {
11
12
test.equal(blocking(function (a, b, cb) { cb(null, a + b) })(1, 2), 3);
13
14
+ test.equal(blocking(function (a, b, f, cb) { cb(null, f(a, b)) })(1, 2, function (a, b) {return a + b}), 3);
15
+
16
test.throws(function () {
17
blocking(function (a, b, cb) { cb("test error") })(1, 2)
18
}, /^test error$/);
0 commit comments