| 63 | }); |
| 64 | it('should throw an exception if step.length or inverse.length is invalid', function () { |
| 65 | const length = x => Object.defineProperty(() => {}, 'length', { value: x }); |
| 66 | expect(() => this.db.aggregate('a', { step: length(undefined) })).to.throw(TypeError); |
| 67 | expect(() => this.db.aggregate('b', { step: length(null) })).to.throw(TypeError); |
| 68 | expect(() => this.db.aggregate('c', { step: length('2') })).to.throw(TypeError); |
no outgoing calls
no test coverage detected
searching dependent graphs…