(arr, limitFunc, limit, iter, done)
| 8 | } |
| 9 | |
| 10 | function testLimit(arr, limitFunc, limit, iter, done) { |
| 11 | var args = []; |
| 12 | |
| 13 | limitFunc(arr, limit, function(x) { |
| 14 | args.push(x); |
| 15 | iter.apply(this, arguments); |
| 16 | }, function() { |
| 17 | expect(args).to.eql(arr); |
| 18 | done.apply(this, arguments); |
| 19 | }); |
| 20 | } |
| 21 | |
| 22 | describe("filter", function () { |
| 23 |
no outgoing calls
no test coverage detected
searching dependent graphs…