Components added. Build issues fixed

This commit is contained in:
Bahadir Sofuoglu 2022-09-14 14:26:01 +03:00
parent 5b66ed1093
commit 18c3721848
344 changed files with 12446 additions and 8758 deletions

View file

@ -14,7 +14,7 @@ describe('InputMask.vue', () => {
expect(wrapper.find('.p-inputmask.p-component').exists()).toBe(true);
expect(wrapper.find('.p-inputmask.p-component').attributes().placeholder).toBe('99-999999');
const event = {'target': { 'value': '1' }};
const event = { target: { value: '1' } };
await wrapper.vm.onInput(event);
@ -22,17 +22,17 @@ describe('InputMask.vue', () => {
});
it('keydown event', async () => {
const wrapper = mount(InputMask, {
const wrapper = mount(InputMask, {
props: {
modelValue: null,
mask: '99/99/9999'
}
});
const event = {'target': { 'value': '1' }};
const event = { target: { value: '1' } };
await wrapper.vm.onKeyDown(event);
expect(wrapper.emitted().keydown[0]).toEqual([event]);
});
});
});