Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
'mouseup' was replaced by 'click' event
in the previous work so tests
need to reflect it
  • Loading branch information
MisRob authored and KshitijThareja committed Dec 17, 2024
1 parent fdfc771 commit 84dd30a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/KCard/__tests__/KCard.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('KCard', () => {

await wrapper.find('li').trigger('mousedown');
await new Promise(resolve => setTimeout(resolve, 500));
await wrapper.find('li').trigger('mouseup');
await wrapper.find('li').trigger('click');
expect(wrapper.vm.$router.currentRoute.path).not.toBe('/some-link');
});

Expand All @@ -95,7 +95,7 @@ describe('KCard', () => {

await wrapper.find('li').trigger('mousedown');
await new Promise(resolve => setTimeout(resolve, 100));
await wrapper.find('li').trigger('mouseup');
await wrapper.find('li').trigger('click');

expect(wrapper.vm.$router.currentRoute.path).toBe('/some-link');
});
Expand Down

0 comments on commit 84dd30a

Please sign in to comment.