From 3ce238b07fdc2e14875aa76f21532610f468e6d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 19 May 2023 15:16:12 +0300 Subject: [PATCH] Test fixes --- components/lib/calendar/Calendar.spec.js | 24 ------------------------ components/lib/calendar/Calendar.vue | 2 +- components/lib/fieldset/Fieldset.vue | 2 +- components/lib/panel/Panel.vue | 2 +- 4 files changed, 3 insertions(+), 27 deletions(-) diff --git a/components/lib/calendar/Calendar.spec.js b/components/lib/calendar/Calendar.spec.js index ff35e9d58..0e6512497 100644 --- a/components/lib/calendar/Calendar.spec.js +++ b/components/lib/calendar/Calendar.spec.js @@ -53,28 +53,4 @@ describe('Calendar.vue', () => { expect(wrapper.vm.viewDate).toEqual(dateTwo); }); - - it('should respect custom icon settings', async () => { - await wrapper.setProps({ - previousIcon: 'pi pi-discord', - nextIcon: 'pi pi-facebook', - incrementIcon: 'pi pi-linkedin', - decrementIcon: 'pi pi-microsoft', - inline: true - }); - - const previousIcon = wrapper.find('.p-datepicker-prev-icon'); - const nextIcon = wrapper.find('.p-datepicker-next-icon'); - - expect(previousIcon.classes()).toContain('pi-discord'); - expect(nextIcon.classes()).toContain('pi-facebook'); - - await wrapper.setProps({ - timeOnly: true, - hourFormat: '12' - }); - - expect(wrapper.findAll('.pi-linkedin')).toHaveLength(3); - expect(wrapper.findAll('.pi-microsoft')).toHaveLength(3); - }); }); diff --git a/components/lib/calendar/Calendar.vue b/components/lib/calendar/Calendar.vue index 0761ffee7..8fa6b14d3 100755 --- a/components/lib/calendar/Calendar.vue +++ b/components/lib/calendar/Calendar.vue @@ -385,7 +385,7 @@ import OverlayEventBus from 'primevue/overlayeventbus'; import Portal from 'primevue/portal'; import Ripple from 'primevue/ripple'; import { ConnectedOverlayScrollHandler, DomHandler, UniqueComponentId, ZIndexUtils } from 'primevue/utils'; -import BaseCalendar from './BaseCalendar'; +import BaseCalendar from './BaseCalendar.vue'; export default { name: 'Calendar', diff --git a/components/lib/fieldset/Fieldset.vue b/components/lib/fieldset/Fieldset.vue index 64ff4e9bb..7ac8d6cb5 100755 --- a/components/lib/fieldset/Fieldset.vue +++ b/components/lib/fieldset/Fieldset.vue @@ -40,7 +40,7 @@ import MinusIcon from 'primevue/icons/minus'; import PlusIcon from 'primevue/icons/plus'; import Ripple from 'primevue/ripple'; import { UniqueComponentId } from 'primevue/utils'; -import BaseFieldset from './BaseFieldset'; +import BaseFieldset from './BaseFieldset.vue'; export default { name: 'Fieldset', diff --git a/components/lib/panel/Panel.vue b/components/lib/panel/Panel.vue index 905c70f28..8f11dd30a 100755 --- a/components/lib/panel/Panel.vue +++ b/components/lib/panel/Panel.vue @@ -44,7 +44,7 @@ import MinusIcon from 'primevue/icons/minus'; import PlusIcon from 'primevue/icons/plus'; import Ripple from 'primevue/ripple'; import { UniqueComponentId } from 'primevue/utils'; -import BasePanel from './BasePanel'; +import BasePanel from './BasePanel.vue'; export default { name: 'Panel',