Fixed #5095 - Unit tests in the master branch are failing

This commit is contained in:
tugcekucukoglu 2024-01-18 11:14:47 +03:00
parent a40796714c
commit 48aa388953
7 changed files with 22 additions and 68 deletions

View file

@ -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();
});