projects
/
squeep-indie-auther
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix changelog
[squeep-indie-auther]
/
test
/
stub-db.js
diff --git
a/test/stub-db.js
b/test/stub-db.js
index f973b8d417d0184ee3fdb61b9cf5230d2dec358c..3efc125d4c3de9d47eea7c702f73ca0a6cc2b22f 100644
(file)
--- a/
test/stub-db.js
+++ b/
test/stub-db.js
@@
-1,16
+1,23
@@
-/* eslint-disable security/detect-object-injection */
'use strict';
'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 {
class StubDatabase extends Base {
+ constructor() {
+ super(sinon);
+ }
+
get _stubFns() {
return [
...super._stubFns,
'almanacGetAll',
get _stubFns() {
return [
...super._stubFns,
'almanacGetAll',
+ 'almanacUpsert',
'authenticationGet',
'authenticationSuccess',
'authenticationUpsert',
'authenticationGet',
'authenticationSuccess',
'authenticationUpsert',
+ 'authenticationUpdateCredential',
+ 'authenticationUpdateOTPKey',
'profileIdentifierInsert',
'profileIsValid',
'profileScopeInsert',
'profileIdentifierInsert',
'profileIsValid',
'profileScopeInsert',
@@
-27,9
+34,12
@@
class StubDatabase extends Base {
'tokenGetByCodeId',
'tokenRefreshRevokeByCodeId',
'tokenRevokeByCodeId',
'tokenGetByCodeId',
'tokenRefreshRevokeByCodeId',
'tokenRevokeByCodeId',
- 'tokensGetByIdentifier',
+ 'tokensGetByIdentifier',
+ 'ticketRedeemed',
+ 'ticketTokenPublished',
+ 'ticketTokenGetUnpublished',
];
}
}
];
}
}
-module.exports = StubDatabase;
\ No newline at end of file
+module.exports = StubDatabase;