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