use existing auth db method for identifier creation
[squeep-authentication-module] / test / stub-db.js
index 2d1ce7724eec8818067b8b7579a26cd178d2edf0..0df6b9ebb097d225304e8d699418edf2afdf20ff 100644 (file)
@@ -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