diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-03-15 16:32:00 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-03-15 17:08:58 +0100 |
commit | 9b82bd312be8dadc3179dd7e3f818fd31c03ba90 (patch) | |
tree | 3b52c0c320d88bf36de51d661e318e40130c10f3 /src | |
parent | 026ef7e01b48051d35ef97b018584884b5db9911 (diff) |
Add testing
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/AppNavigation/GroupNavigationItem.vue | 2 | ||||
-rw-r--r-- | src/components/ContactsList.vue | 2 | ||||
-rw-r--r-- | src/models/contact.js | 5 | ||||
-rw-r--r-- | src/models/rfcProps.js | 4 | ||||
-rw-r--r-- | src/services/updateDesignSet.js | 2 |
5 files changed, 8 insertions, 7 deletions
diff --git a/src/components/AppNavigation/GroupNavigationItem.vue b/src/components/AppNavigation/GroupNavigationItem.vue index 98f95373..51cc8dd5 100644 --- a/src/components/AppNavigation/GroupNavigationItem.vue +++ b/src/components/AppNavigation/GroupNavigationItem.vue @@ -135,7 +135,7 @@ export default { /** * Open mailto: for contacts in a group * - * @param {Object} group of contacts to be emailed + * @param {object} group of contacts to be emailed */ emailGroup(group) { const emails = [] diff --git a/src/components/ContactsList.vue b/src/components/ContactsList.vue index cfdbf0be..03d44efe 100644 --- a/src/components/ContactsList.vue +++ b/src/components/ContactsList.vue @@ -22,7 +22,7 @@ <template> <AppContentList> - <div class="contacts-list__header"></div> + <div class="contacts-list__header" /> <VirtualList ref="scroller" class="contacts-list" data-key="key" diff --git a/src/models/contact.js b/src/models/contact.js index a3fcb13b..dbf589c7 100644 --- a/src/models/contact.js +++ b/src/models/contact.js @@ -567,8 +567,9 @@ export default class Contact { } toStringStripQuotes() { - const regexp = /TYPE="([a-zA-Z-,]+)"/gm + const regexp = /TYPE="([a-zA-Z-,]+)"/gmi const card = this.vCard.toString() - return card.replaceAll(regexp, 'TYPE=$1') + return card.replace(regexp, 'TYPE=$1') } + } diff --git a/src/models/rfcProps.js b/src/models/rfcProps.js index 0c11be8d..820f1ee6 100644 --- a/src/models/rfcProps.js +++ b/src/models/rfcProps.js @@ -27,8 +27,8 @@ import ActionToggleYear from '../components/Actions/ActionToggleYear' import zones from './zones' // Load the default profile (for example, home or work) configured by the user -const defaultProfileState = loadState('contacts', 'defaultProfile') -const localesState = loadState('contacts', 'locales') +const defaultProfileState = loadState('contacts', 'defaultProfile', 'HOME') +const localesState = loadState('contacts', 'locales', false) const locales = localesState ? localesState.map(({ code, name }) => ({ id: code.toLowerCase().replace('_', '-'), diff --git a/src/services/updateDesignSet.js b/src/services/updateDesignSet.js index 672efa67..e99b7fa4 100644 --- a/src/services/updateDesignSet.js +++ b/src/services/updateDesignSet.js @@ -67,7 +67,7 @@ const addGroupedProperties = vCard => { * Fixes misbehaviour with TYPE quotes and separated commas * Seems to have been introduced with https://github.com/mozilla-comm/ical.js/pull/387 * - * @returns {Boolean} Whether or not the design set has been altered. + * @return {boolean} Whether or not the design set has been altered. */ const setTypeMultiValueSeparateDQuote = () => { if ( |