X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Fstub-db.js;fp=test%2Fstub-db.js;h=afe5f702a1a386dc61e59fcf4698bc359005c4cf;hb=69a2f5e7d73dd3f58e07b652c306daa8b253245d;hp=0000000000000000000000000000000000000000;hpb=49cf45515817fbd4479c654d89c8a56c292298bb;p=squeep-resource-authentication-module diff --git a/test/stub-db.js b/test/stub-db.js new file mode 100644 index 0000000..afe5f70 --- /dev/null +++ b/test/stub-db.js @@ -0,0 +1,18 @@ +'use strict'; + +const { StubDatabase: Base } = require('@squeep/test-helper'); // eslint-disable-line node/no-unpublished-require +const sinon = require('sinon'); + +class StubDatabase extends Base { + constructor(...args) { + super(...args); + } + get _stubFns() { + return [ + ...super._stubFns, + 'resourceGet', + ]; + } +} + +module.exports = StubDatabase; \ No newline at end of file