054cc47d857810bbfeb33834857f1c665eecb1e2
[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 'almanacUpsert',
12 'authenticationGet',
13 'authenticationSuccess',
14 'authenticationUpsert',
15 'authenticationUpdateCredential',
16 'authenticationUpdateOTPKey',
17 'profileIdentifierInsert',
18 'profileIsValid',
19 'profileScopeInsert',
20 'profileScopesSetAll',
21 'profilesScopesByIdentifier',
22 'redeemCode',
23 'refreshCode',
24 'resourceGet',
25 'resourceUpsert',
26 'scopeCleanup',
27 'scopeDelete',
28 'scopeUpsert',
29 'tokenCleanup',
30 'tokenGetByCodeId',
31 'tokenRefreshRevokeByCodeId',
32 'tokenRevokeByCodeId',
33 'tokensGetByIdentifier',
34 'ticketRedeemed',
35 'ticketTokenPublished',
36 'ticketTokenGetUnpublished',
37 ];
38 }
39 }
40
41 module.exports = StubDatabase;