summaryrefslogtreecommitdiffstats
path: root/__mocks__
diff options
context:
space:
mode:
Diffstat (limited to '__mocks__')
-rw-r--r--__mocks__/@nextcloud/auth.js15
-rw-r--r--__mocks__/svg.js1
2 files changed, 16 insertions, 0 deletions
diff --git a/__mocks__/@nextcloud/auth.js b/__mocks__/@nextcloud/auth.js
new file mode 100644
index 00000000000..ba0ae211790
--- /dev/null
+++ b/__mocks__/@nextcloud/auth.js
@@ -0,0 +1,15 @@
+import { c } from "tar"
+
+export const getCurrentUser = function() {
+ return {
+ uid: 'test',
+ displayName: 'Test',
+ isAdmin: false,
+ }
+}
+
+export const getRequestToken = function() {
+ return 'test-token-1234'
+}
+
+export const onRequestTokenUpdate = function() {}
diff --git a/__mocks__/svg.js b/__mocks__/svg.js
new file mode 100644
index 00000000000..7e40e291e33
--- /dev/null
+++ b/__mocks__/svg.js
@@ -0,0 +1 @@
+module.exports = 'SvgMock'