X-Git-Url: http://git.squeep.com/?p=squeep-indie-auther;a=blobdiff_plain;f=test%2Fstub-db.js;fp=test%2Fstub-db.js;h=f973b8d417d0184ee3fdb61b9cf5230d2dec358c;hp=0000000000000000000000000000000000000000;hb=b0103b0d496262c438b40bc20304081dbfe41e73;hpb=8ed81748bce7cea7904cac7225b20a60cafdfc16 diff --git a/test/stub-db.js b/test/stub-db.js new file mode 100644 index 0000000..f973b8d --- /dev/null +++ b/test/stub-db.js @@ -0,0 +1,35 @@ +/* eslint-disable security/detect-object-injection */ +'use strict'; + +const { StubDatabase: Base } = require('@squeep/test-helper'); // eslint-disable-line node/no-unpublished-require + +class StubDatabase extends Base { + get _stubFns() { + return [ + ...super._stubFns, + 'almanacGetAll', + 'authenticationGet', + 'authenticationSuccess', + 'authenticationUpsert', + 'profileIdentifierInsert', + 'profileIsValid', + 'profileScopeInsert', + 'profileScopesSetAll', + 'profilesScopesByIdentifier', + 'redeemCode', + 'refreshCode', + 'resourceGet', + 'resourceUpsert', + 'scopeCleanup', + 'scopeDelete', + 'scopeUpsert', + 'tokenCleanup', + 'tokenGetByCodeId', + 'tokenRefreshRevokeByCodeId', + 'tokenRevokeByCodeId', + 'tokensGetByIdentifier', + ]; + } +} + +module.exports = StubDatabase; \ No newline at end of file