Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sclavijo93 committed Nov 26, 2019
1 parent faca8c3 commit c687391
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -650,11 +650,10 @@ describe('<Autocomplete />', () => {
const { getByRole } = render(<MyComponent />);

const textbox = getByRole('textbox');
expect(handleChange.callCount).to.equal(1);
expect(handleChange.args[0][0]).to.equal('');
expect(handleChange.callCount).to.equal(0);
fireEvent.change(textbox, { target: { value: 'a' } });
expect(handleChange.callCount).to.equal(2);
expect(handleChange.args[1][0]).to.equal('a');
expect(handleChange.callCount).to.equal(1);
expect(handleChange.args[0][0]).to.equal('a');
expect(textbox.value).to.equal('');
});
});
Expand Down

0 comments on commit c687391

Please sign in to comment.