diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2023-08-02 12:59:12 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-08-02 15:21:34 +0200 |
commit | 9bf42fc3bf70bb7587af30e4a98089fdc46fa579 (patch) | |
tree | 25b12cc3039957ecebc5161cefefe2bdde0a1db5 /__mocks__ | |
parent | e457572f6b7b2a1a1ace5b79ae06b62db1d99f79 (diff) | |
download | nextcloud-server-9bf42fc3bf70bb7587af30e4a98089fdc46fa579.tar.gz nextcloud-server-9bf42fc3bf70bb7587af30e4a98089fdc46fa579.zip |
fix(jest): also mock initial-state
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to '__mocks__')
-rw-r--r-- | __mocks__/@nextcloud/initial-state.ts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/__mocks__/@nextcloud/initial-state.ts b/__mocks__/@nextcloud/initial-state.ts new file mode 100644 index 00000000000..d4396311ec8 --- /dev/null +++ b/__mocks__/@nextcloud/initial-state.ts @@ -0,0 +1,25 @@ +/** + * @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 loadState = function(app: string, key: string, fallback?: any) { + return fallback +} |