f973b8d417d0184ee3fdb61b9cf5230d2dec358c
[squeep-indie-auther] / test / stub-db.js
1 /* eslint-disable security/detect-object-injection */
2 'use strict';
3
4 const { StubDatabase: Base } = require('@squeep/test-helper'); // eslint-disable-line node/no-unpublished-require
5
6 class StubDatabase extends Base {
7 get _stubFns() {
8 return [
9 ...super._stubFns,
10 'almanacGetAll',
11 'authenticationGet',
12 'authenticationSuccess',
13 'authenticationUpsert',
14 'profileIdentifierInsert',
15 'profileIsValid',
16 'profileScopeInsert',
17 'profileScopesSetAll',
18 'profilesScopesByIdentifier',
19 'redeemCode',
20 'refreshCode',
21 'resourceGet',
22 'resourceUpsert',
23 'scopeCleanup',
24 'scopeDelete',
25 'scopeUpsert',
26 'tokenCleanup',
27 'tokenGetByCodeId',
28 'tokenRefreshRevokeByCodeId',
29 'tokenRevokeByCodeId',
30 'tokensGetByIdentifier',
31 ];
32 }
33 }
34
35 module.exports = StubDatabase;