MCPcopy
hub / github.com/WiseLibs/better-sqlite3 / length

Function length

test/33.database.aggregate.js:65–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…