diff --git a/test/test.js b/test/test.js index 8e6d9502f..33e292d9a 100644 --- a/test/test.js +++ b/test/test.js @@ -668,6 +668,18 @@ callback = _.createCallback(_.partialRight(func, 3), object); deepEqual(callback(2), expected); }); + + test('should work without an `argCount`', function() { + var args, + expected = ['a', 'b', 'c', 'd', 'e']; + + var callback = _.createCallback(function() { + args = slice.call(arguments); + }); + + callback.apply(null, expected); + deepEqual(args, expected); + }); }()); /*--------------------------------------------------------------------------*/