Skip to content

Commit

Permalink
Add test for composed event
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardHelm committed Feb 24, 2025
1 parent 293bcd0 commit ae1b3ca
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,17 @@ describe('vwc-inline-time-picker', () => {
expect.objectContaining({ bubbles: false })
);
});

it('should not be composed', () => {
const spy = vi.fn();
element.addEventListener('change', spy);

getPickerItem('hours', '03').click();

expect(spy).toHaveBeenCalledWith(
expect.objectContaining({ composed: false })
);
});
});

describe('last-column-selected event', () => {
Expand Down

0 comments on commit ae1b3ca

Please sign in to comment.