aboutsummaryrefslogtreecommitdiffstats
path: root/__mocks__/@nextcloud/axios.ts
diff options
context:
space:
mode:
Diffstat (limited to '__mocks__/@nextcloud/axios.ts')
-rw-r--r--__mocks__/@nextcloud/axios.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/__mocks__/@nextcloud/axios.ts b/__mocks__/@nextcloud/axios.ts
new file mode 100644
index 00000000000..5133574d9ed
--- /dev/null
+++ b/__mocks__/@nextcloud/axios.ts
@@ -0,0 +1,17 @@
+/**
+ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+export default {
+ interceptors: {
+ response: {
+ use: () => {},
+ },
+ request: {
+ use: () => {},
+ },
+ },
+ get: async () => ({ status: 200, data: {} }),
+ delete: async () => ({ status: 200, data: {} }),
+ post: async () => ({ status: 200, data: {} }),
+}