aboutsummaryrefslogtreecommitdiffstats
path: root/__mocks__
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-06-30 10:47:30 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-07-05 16:20:34 +0200
commit047218b5b08089c8455a37f9983ccb7047a10d25 (patch)
tree45d76ca82bca78e8c3c6786a9f01704bcb4ea858 /__mocks__
parent18f88a7042087f4ea93d66290ee6196b19a5db78 (diff)
downloadnextcloud-server-047218b5b08089c8455a37f9983ccb7047a10d25.tar.gz
nextcloud-server-047218b5b08089c8455a37f9983ccb7047a10d25.zip
feat: add favorites view testing
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to '__mocks__')
-rw-r--r--__mocks__/svg.js2
-rw-r--r--__mocks__/webdav.ts27
2 files changed, 28 insertions, 1 deletions
diff --git a/__mocks__/svg.js b/__mocks__/svg.js
index 52b1041f754..1afe4357c0d 100644
--- a/__mocks__/svg.js
+++ b/__mocks__/svg.js
@@ -19,4 +19,4 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-export default 'SvgMock'
+export default '<svg>SvgMock</svg>'
diff --git a/__mocks__/webdav.ts b/__mocks__/webdav.ts
new file mode 100644
index 00000000000..5a1498c0e2d
--- /dev/null
+++ b/__mocks__/webdav.ts
@@ -0,0 +1,27 @@
+/**
+ * @copyright Copyright (c) 2023 John Molakvoæ <skjnldsv@protonmail.com>
+ *
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
+ *
+ * @license AGPL-3.0-or-later
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+export const createClient = () => {}
+export const getPatcher = () => {
+ return {
+ patch: () => {}
+ }
+}