update dependencies and devDependencies, fix lint issues
[squeep-indie-auther] / test / stub-db.js
1 'use strict';
2
3 const { StubDatabase: Base } = require('@squeep/test-helper');
4 const sinon = require('sinon');
5
6 class StubDatabase extends Base {
7 constructor() {
8 super(sinon);
9 }
10
11 get _stubFns() {
12 return [
13 ...super._stubFns,
14 'almanacGetAll',
15 'almanacUpsert',
16 'authenticationGet',
17 'authenticationSuccess',
18 'authenticationUpsert',
19 'authenticationUpdateCredential',
20 'authenticationUpdateOTPKey',
21 'profileIdentifierInsert',
22 'profileIsValid',
23 'profileScopeInsert',
24 'profileScopesSetAll',
25 'profilesScopesByIdentifier',
26 'redeemCode',
27 'refreshCode',
28 'resourceGet',
29 'resourceUpsert',
30 'scopeCleanup',
31 'scopeDelete',
32 'scopeUpsert',
33 'tokenCleanup',
34 'tokenGetByCodeId',
35 'tokenRefreshRevokeByCodeId',
36 'tokenRevokeByCodeId',
37 'tokensGetByIdentifier',
38 'ticketRedeemed',
39 'ticketTokenPublished',
40 'ticketTokenGetUnpublished',
41 ];
42 }
43 }
44
45 module.exports = StubDatabase;