projects
/
squeep-authentication-module
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
migrate ResourceAuthenticator into here from separate package
[squeep-authentication-module]
/
test
/
stub-db.js
diff --git
a/test/stub-db.js
b/test/stub-db.js
index 2d1ce7724eec8818067b8b7579a26cd178d2edf0..537c92b88859a7a40c104032aafe8965f72b363c 100644
(file)
--- a/
test/stub-db.js
+++ b/
test/stub-db.js
@@
-1,7
+1,7
@@
/* eslint-disable security/detect-object-injection */
'use strict';
/* 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',
const spyFns = [
'context',
@@
-9,9
+9,12
@@
const spyFns = [
];
const stubFns = [
];
const stubFns = [
- 'authenticationSuccess',
'authenticationGet',
'authenticationUpsert',
'authenticationGet',
'authenticationUpsert',
+ 'authenticationSuccess',
+ 'authenticationUpdateCredential',
+ 'authenticationUpdateOTPKey',
+ 'resourceGet',
];
const stubDatabase = {
];
const stubDatabase = {
@@
-25,7
+28,7
@@
const stubDatabase = {
};
stubFns.forEach((fn) => {
};
stubFns.forEach((fn) => {
- stubDatabase[fn] = () =>
{}
;
+ stubDatabase[fn] = () =>
undefined
;
});
module.exports = stubDatabase;
\ No newline at end of file
});
module.exports = stubDatabase;
\ No newline at end of file