Test fixes
parent
58e97dc979
commit
3ce238b07f
|
@ -53,28 +53,4 @@ describe('Calendar.vue', () => {
|
||||||
|
|
||||||
expect(wrapper.vm.viewDate).toEqual(dateTwo);
|
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);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -385,7 +385,7 @@ import OverlayEventBus from 'primevue/overlayeventbus';
|
||||||
import Portal from 'primevue/portal';
|
import Portal from 'primevue/portal';
|
||||||
import Ripple from 'primevue/ripple';
|
import Ripple from 'primevue/ripple';
|
||||||
import { ConnectedOverlayScrollHandler, DomHandler, UniqueComponentId, ZIndexUtils } from 'primevue/utils';
|
import { ConnectedOverlayScrollHandler, DomHandler, UniqueComponentId, ZIndexUtils } from 'primevue/utils';
|
||||||
import BaseCalendar from './BaseCalendar';
|
import BaseCalendar from './BaseCalendar.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Calendar',
|
name: 'Calendar',
|
||||||
|
|
|
@ -40,7 +40,7 @@ import MinusIcon from 'primevue/icons/minus';
|
||||||
import PlusIcon from 'primevue/icons/plus';
|
import PlusIcon from 'primevue/icons/plus';
|
||||||
import Ripple from 'primevue/ripple';
|
import Ripple from 'primevue/ripple';
|
||||||
import { UniqueComponentId } from 'primevue/utils';
|
import { UniqueComponentId } from 'primevue/utils';
|
||||||
import BaseFieldset from './BaseFieldset';
|
import BaseFieldset from './BaseFieldset.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Fieldset',
|
name: 'Fieldset',
|
||||||
|
|
|
@ -44,7 +44,7 @@ import MinusIcon from 'primevue/icons/minus';
|
||||||
import PlusIcon from 'primevue/icons/plus';
|
import PlusIcon from 'primevue/icons/plus';
|
||||||
import Ripple from 'primevue/ripple';
|
import Ripple from 'primevue/ripple';
|
||||||
import { UniqueComponentId } from 'primevue/utils';
|
import { UniqueComponentId } from 'primevue/utils';
|
||||||
import BasePanel from './BasePanel';
|
import BasePanel from './BasePanel.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Panel',
|
name: 'Panel',
|
||||||
|
|
Loading…
Reference in New Issue