1 /* eslint-disable class-methods-use-this */
4 const sinon
= require('sinon'); // eslint-disable-line node/no-unpublished-require
8 this._implementation
.forEach((fn
) => {
10 this[fn
] = async () => { /* */ }; // eslint-disable-line security/detect-object-injection
15 get _implementation() {
37 this._spyFns
.forEach((fn
) => {
40 this._stubFns
.forEach((fn
) => {
49 async
transaction(dbCtx
, fn
) {
55 module
.exports
= StubDatabase
;