Skip to content

Commit

Permalink
fix(color-wheel): use correct focus events in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Oct 4, 2021
1 parent b974c12 commit f6f35ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/color-wheel/test/color-wheel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ describe('ColorWheel', () => {

await elementUpdated(el);

el.focusElement.dispatchEvent(new FocusEvent('focus'));
el.dispatchEvent(new FocusEvent('focusin'));
await elementUpdated(el);

expect(el.focused);
expect(el.focused).to.be.true;

el.focusElement.dispatchEvent(new FocusEvent('blur'));
el.dispatchEvent(new FocusEvent('focusout'));
await elementUpdated(el);

expect(!el.focused);
expect(el.focused).to.be.false;
});
it('dispatches input and change events in response to "Arrow*" keypresses', async () => {
const inputSpy = spy();
Expand Down Expand Up @@ -356,7 +356,7 @@ describe('ColorWheel', () => {

await elementUpdated(el);

const { handle } = (el as unknown) as { handle: HTMLElement };
const { handle } = el as unknown as { handle: HTMLElement };

handle.setPointerCapture = () => {
return;
Expand Down

0 comments on commit f6f35ec

Please sign in to comment.