From e2237b6ba0c94b9ec490502b923e986648bede45 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Fri, 22 May 2020 15:14:00 +0200 Subject: [PATCH] Cleanup and tests for some Stores Signed-off-by: Georg Ehrke --- .../CalendarListItemSharingSearch.vue | 4 +- src/components/AppNavigation/Settings.vue | 15 +- .../Settings/SettingsImportSection.vue | 16 +- .../Settings/SettingsTimezoneSelect.vue | 2 +- .../Editor/Invitees/InviteesListSearch.vue | 4 +- src/fullcalendar/freeBusyEventSource.js | 5 +- src/models/consts.js | 12 + src/services/caldavService.js | 221 ++++++- src/services/settings.js | 37 ++ src/services/timezoneDetectionService.js | 7 +- src/services/windowTitleService.js | 2 +- src/store/calendars.js | 58 +- src/store/contacts.js | 28 +- src/store/davRestrictions.js | 14 +- src/store/importFiles.js | 19 +- src/store/importState.js | 11 +- src/store/principals.js | 14 +- src/store/settings.js | 205 ++++--- src/utils/logger.js | 68 ++- src/views/Calendar.vue | 13 +- .../javascript/unit/services/settings.test.js | 50 ++ .../unit/services/windowTitleService.test.js | 2 +- tests/javascript/unit/store/contacts.test.js | 118 +++- .../unit/store/davRestrictions.test.js | 28 +- .../javascript/unit/store/importFiles.test.js | 119 +++- .../javascript/unit/store/importState.test.js | 82 ++- tests/javascript/unit/store/settings.test.js | 561 +++++++++++++++++- 27 files changed, 1478 insertions(+), 237 deletions(-) create mode 100644 src/services/settings.js create mode 100644 tests/javascript/unit/services/settings.test.js diff --git a/src/components/AppNavigation/CalendarList/CalendarListItemSharingSearch.vue b/src/components/AppNavigation/CalendarList/CalendarListItemSharingSearch.vue index 9d207d6b2..b05085086 100644 --- a/src/components/AppNavigation/CalendarList/CalendarListItemSharingSearch.vue +++ b/src/components/AppNavigation/CalendarList/CalendarListItemSharingSearch.vue @@ -45,7 +45,7 @@