(ctx, ...args)
| 142 | }); |
| 143 | it('should accept a "varargs" option', function () { |
| 144 | const step = (ctx, ...args) => args.reduce((a, b) => a * b, 1) + ctx; |
| 145 | Object.defineProperty(step, 'length', { value: '-2' }); |
| 146 | this.db.aggregate('agg', { varargs: true, step }); |
| 147 | expect(this.get('agg()')).to.equal(1); |
nothing calls this directly
no outgoing calls
no test coverage detected