Skip to content

Commit

Permalink
yarn prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Mar 1, 2020
1 parent 39232d9 commit 93405f6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ describe('<Autocomplete />', () => {
fireEvent.keyDown(document.activeElement, { key: 'Enter' });
fireEvent.change(document.activeElement, { target: { value: 'o' } });
checkHighlightIs('two');

});
});

Expand All @@ -112,11 +111,11 @@ describe('<Autocomplete />', () => {
renderInput={params => <TextField {...params} autoFocus />}
/>,
);

function checkHighlightIs(expected) {
expect(getByRole('listbox').querySelector('li[data-focus]')).to.have.text(expected);
}

fireEvent.keyDown(document.activeElement, { key: 'ArrowUp' });
checkHighlightIs('three');
fireEvent.keyDown(document.activeElement, { key: 'Enter' }); // selects the last option
Expand Down

0 comments on commit 93405f6

Please sign in to comment.