Skip to content

Commit ab00b87

Browse files
committed
test(select): fix test error (array passed as one of options)
1 parent 1463a89 commit ab00b87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Select/Select.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('<Select />', () => {
3838
expect(getByRole('button')).toHaveProperty('tabIndex', 1);
3939
});
4040
it('should accept null child', () => {
41-
renderWithTheme(<Select value={10} options={[options, null]} />);
41+
renderWithTheme(<Select value={10} options={[...options, null]} />);
4242
});
4343
it('should have an input with [type="hidden"] by default', () => {
4444
const { container } = renderWithTheme(

0 commit comments

Comments
 (0)