X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fstub-db.js;h=f5306b37893b14055ff9e02785a9614ec3c33ad1;hb=9c8e775e5ab96a1788f535760bfa72205c430d15;hp=2d1ce7724eec8818067b8b7579a26cd178d2edf0;hpb=dd173e6b450cbba8100883514610c9fde83d050a;p=squeep-authentication-module diff --git a/test/stub-db.js b/test/stub-db.js index 2d1ce77..f5306b3 100644 --- a/test/stub-db.js +++ b/test/stub-db.js @@ -1,7 +1,7 @@ /* eslint-disable security/detect-object-injection */ 'use strict'; -const sinon = require('sinon'); // eslint-disable-line node/no-unpublished-require +const sinon = require('sinon'); const spyFns = [ 'context', @@ -9,9 +9,11 @@ const spyFns = [ ]; const stubFns = [ - 'authenticationSuccess', 'authenticationGet', 'authenticationUpsert', + 'authenticationSuccess', + 'authenticationUpdateCredential', + 'authenticationUpdateOTPKey', ]; const stubDatabase = { @@ -25,7 +27,7 @@ const stubDatabase = { }; stubFns.forEach((fn) => { - stubDatabase[fn] = () => {}; + stubDatabase[fn] = () => undefined; }); module.exports = stubDatabase; \ No newline at end of file