1 /* eslint-disable class-methods-use-this */
4 const sinon
= require('sinon');
8 this._implementation
.forEach((fn
) => {
10 this[fn
] = async () => undefined; // 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
;