(...args)
| 90 | }); |
| 91 | it('should accept a "varargs" option', function () { |
| 92 | const fn = (...args) => args.reduce((a, b) => a * b, 1); |
| 93 | Object.defineProperty(fn, 'length', { value: '-2' }); |
| 94 | this.db.function('fn', { varargs: true }, fn); |
| 95 | expect(this.get('fn()')).to.equal(1); |
no outgoing calls
no test coverage detected