Skip to content

Commit

Permalink
remove redundant assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Dec 11, 2019
1 parent 6153415 commit 9ca23a4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ describe('<Autocomplete />', () => {
});
});

describe('freeSolo', () => {
describe('prop: freeSolo', () => {
it('pressing twice enter should not call onChange listener twice', () => {
const handleChange = spy();
const options = [{ name: 'foo' }];
Expand All @@ -740,7 +740,6 @@ describe('<Autocomplete />', () => {
expect(handleChange.args[0][1]).to.deep.equal(options[0]);
fireEvent.keyDown(document.activeElement, { key: 'Enter' });
expect(handleChange.callCount).to.equal(1);
expect(handleChange.args[0][1]).to.deep.equal(options[0]);
});
});
});

0 comments on commit 9ca23a4

Please sign in to comment.