aboutsummaryrefslogtreecommitdiffstats
path: root/__mocks__/@nextcloud/auth.ts
diff options
context:
space:
mode:
Diffstat (limited to '__mocks__/@nextcloud/auth.ts')
-rw-r--r--__mocks__/@nextcloud/auth.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/__mocks__/@nextcloud/auth.ts b/__mocks__/@nextcloud/auth.ts
new file mode 100644
index 00000000000..8d341dadad7
--- /dev/null
+++ b/__mocks__/@nextcloud/auth.ts
@@ -0,0 +1,17 @@
+/**
+ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+export const getCurrentUser = function() {
+ return {
+ uid: 'test',
+ displayName: 'Test',
+ isAdmin: false,
+ }
+}
+
+export const getRequestToken = function() {
+ return 'test-token-1234'
+}
+
+export const onRequestTokenUpdate = function() {}