diff --git a/components/slider/Slider.spec.js b/components/slider/Slider.spec.js index 67c8a5a71..7e6909728 100644 --- a/components/slider/Slider.spec.js +++ b/components/slider/Slider.spec.js @@ -18,7 +18,7 @@ describe('Slider.vue', () => { }); it('should drag start and end', async () => { - await wrapper.vm.onDragStart({ preventDefault: () => {} }); + await wrapper.vm.onDragStart({ preventDefault: () => {}, currentTarget: { focus: () => {} } }); expect(wrapper.find('.p-slider').classes()).toContain('p-slider-sliding');