update dependencies and devDependencies, fix lint issues
[squeep-indie-auther] / test / stub-db.js
index d8cb0cd1f00bbc7babee4491727a4a7569e3f787..3efc125d4c3de9d47eea7c702f73ca0a6cc2b22f 100644 (file)
@@ -1,9 +1,13 @@
-/* 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,
@@ -12,6 +16,8 @@ class StubDatabase extends Base {
       'authenticationGet',
       'authenticationSuccess',
       'authenticationUpsert',
+      'authenticationUpdateCredential',
+      'authenticationUpdateOTPKey',
       'profileIdentifierInsert',
       'profileIsValid',
       'profileScopeInsert',