mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Components added. Build issues fixed
This commit is contained in:
parent
5b66ed1093
commit
18c3721848
344 changed files with 12446 additions and 8758 deletions
|
@ -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]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue