| 36 | }); |
| 37 | it('should throw an exception if function.length is invalid', function () { |
| 38 | const length = x => Object.defineProperty(() => {}, 'length', { value: x }); |
| 39 | expect(() => this.db.function('a', length(undefined))).to.throw(TypeError); |
| 40 | expect(() => this.db.function('b', length(null))).to.throw(TypeError); |
| 41 | expect(() => this.db.function('c', length('2'))).to.throw(TypeError); |
no outgoing calls
no test coverage detected