initial commit
[squeep-indie-auther] / test / stub-db.js
diff --git a/test/stub-db.js b/test/stub-db.js
new file mode 100644 (file)
index 0000000..f973b8d
--- /dev/null
@@ -0,0 +1,35 @@
+/* eslint-disable security/detect-object-injection */
+'use strict';
+
+const { StubDatabase: Base } = require('@squeep/test-helper'); // eslint-disable-line node/no-unpublished-require
+
+class StubDatabase extends Base {
+  get _stubFns() {
+    return [
+      ...super._stubFns,
+      'almanacGetAll',
+      'authenticationGet',
+      'authenticationSuccess',
+      'authenticationUpsert',
+      'profileIdentifierInsert',
+      'profileIsValid',
+      'profileScopeInsert',
+      'profileScopesSetAll',
+      'profilesScopesByIdentifier',
+      'redeemCode',
+      'refreshCode',
+      'resourceGet',
+      'resourceUpsert',
+      'scopeCleanup',
+      'scopeDelete',
+      'scopeUpsert',
+      'tokenCleanup',
+      'tokenGetByCodeId',
+      'tokenRefreshRevokeByCodeId',
+      'tokenRevokeByCodeId',
+      'tokensGetByIdentifier',    
+    ];
+  }
+}
+
+module.exports = StubDatabase;
\ No newline at end of file