MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / backup

Function backup

test/36.database.backup.js:139–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 });
138 it('should be aborted if the progress callback returns a non-number', async function () {
139 const backup = x => this.db.backup(util.next(), { progress: () => x });
140 await rejectsWith(TypeError, backup(null));
141 await rejectsWith(TypeError, backup(new Number(1)));
142 await rejectsWith(TypeError, backup(() => 1));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected