initial commit
[squeep-resource-authentication-module] / test / stub-db.js
diff --git a/test/stub-db.js b/test/stub-db.js
new file mode 100644 (file)
index 0000000..afe5f70
--- /dev/null
@@ -0,0 +1,18 @@
+'use strict';
+
+const { StubDatabase: Base } = require('@squeep/test-helper'); // eslint-disable-line node/no-unpublished-require
+const sinon = require('sinon');
+
+class StubDatabase extends Base {
+  constructor(...args) {
+    super(...args);
+  }
+  get _stubFns() {
+    return [
+      ...super._stubFns,
+      'resourceGet',
+    ];
+  }
+}
+
+module.exports = StubDatabase;
\ No newline at end of file