update dependencies and devDependencies, fix lint issues
[squeep-indie-auther] / test / stub-db.js
index f973b8d417d0184ee3fdb61b9cf5230d2dec358c..3efc125d4c3de9d47eea7c702f73ca0a6cc2b22f 100644 (file)
@@ -1,16 +1,23 @@
-/* eslint-disable security/detect-object-injection */
 'use strict';
 
-const { StubDatabase: Base } = require('@squeep/test-helper'); // eslint-disable-line node/no-unpublished-require
+const { StubDatabase: Base } = require('@squeep/test-helper');
+const sinon = require('sinon');
 
 class StubDatabase extends Base {
+  constructor() {
+    super(sinon);
+  }
+
   get _stubFns() {
     return [
       ...super._stubFns,
       'almanacGetAll',
+      'almanacUpsert',
       'authenticationGet',
       'authenticationSuccess',
       'authenticationUpsert',
+      'authenticationUpdateCredential',
+      'authenticationUpdateOTPKey',
       'profileIdentifierInsert',
       'profileIsValid',
       'profileScopeInsert',
@@ -27,9 +34,12 @@ class StubDatabase extends Base {
       'tokenGetByCodeId',
       'tokenRefreshRevokeByCodeId',
       'tokenRevokeByCodeId',
-      'tokensGetByIdentifier',    
+      'tokensGetByIdentifier',
+      'ticketRedeemed',
+      'ticketTokenPublished',
+      'ticketTokenGetUnpublished',
     ];
   }
 }
 
-module.exports = StubDatabase;
\ No newline at end of file
+module.exports = StubDatabase;