Skip to content

Commit

Permalink
use expect API
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Mar 4, 2020
1 parent 2ec30fc commit 33d7fa3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assert } from 'chai';
import { expect } from 'chai';
import { createFilterOptions } from './useAutocomplete';

describe('createFilterOptions', () => {
Expand All @@ -21,6 +21,6 @@ describe('createFilterOptions', () => {
},
];

assert.deepEqual(filterOptions(options, { inputValue: 'a', getOptionLabel }), [options[0]]);
expect(filterOptions(options, { inputValue: 'a', getOptionLabel })).to.deep.equal([options[0]]);
});
});

0 comments on commit 33d7fa3

Please sign in to comment.