示例#1
0
 it.should("execute in the right scope ignoring extra arguments", function (next) {
     var c = comb.bindIgnore({test:true}, function () {
         var args = comb.argsToArray(arguments);
         assert.lengthOf(args, 1);
         assert.equal(args[0], "hello");
         next();
     }, "hello");
     c("world");
 });
示例#2
0
 assert.throws(function () {
     comb.bindIgnore(comb, "someFunction");
 })