mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #5095 - Unit tests in the master branch are failing
This commit is contained in:
parent
a40796714c
commit
48aa388953
7 changed files with 22 additions and 68 deletions
|
@ -65,7 +65,7 @@ describe('Sidebar.vue', () => {
|
|||
it('When keydown is triggered , hide method should be triggered', async () => {
|
||||
const hideSpy = vi.spyOn(wrapper.vm, 'hide');
|
||||
|
||||
await wrapper.find('.p-sidebar').trigger('keydown', { code: 'Escape' });
|
||||
await wrapper.vm.onKeydown({ code: 'Escape' });
|
||||
|
||||
expect(hideSpy).toHaveBeenCalled();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue