Skip to content

Commit

Permalink
Update useAutocomplete.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Apr 11, 2020
1 parent 7b4918e commit 6afe84d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,13 @@ describe('createFilterOptions', () => {
},
];
});

describe('any', () => {
it('show all results that match', () => {
expect(filterOptions(options, { inputValue: 'a', getOptionLabel })).to.deep.equal(options);
});
});

describe('start', () => {
it('show only results that start with search', () => {
expect(filterOptions(options, { inputValue: 'a', getOptionLabel })).to.deep.equal(options);
Expand Down

0 comments on commit 6afe84d

Please sign in to comment.