-/* 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,
'authenticationGet',
'authenticationSuccess',
'authenticationUpsert',
+ 'authenticationUpdateCredential',
+ 'authenticationUpdateOTPKey',
'profileIdentifierInsert',
'profileIsValid',
'profileScopeInsert',