mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-22 22:19:48 +03:00
fix errors
This commit is contained in:
parent
7cd3e37d3d
commit
fcd956781f
|
@ -11,7 +11,12 @@ describe('Notification', function () {
|
|||
|
||||
it('renders with props', () => {
|
||||
const wrapper = render(
|
||||
<Notification type="error" onClose={() => {}}>
|
||||
<Notification
|
||||
type="error"
|
||||
onClose={() => {
|
||||
// noop
|
||||
}}
|
||||
>
|
||||
Message
|
||||
</Notification>
|
||||
);
|
||||
|
|
|
@ -10,7 +10,9 @@ describe('SegmentedControl', function () {
|
|||
values={['Button1', 'Button2', 'Button3']}
|
||||
selected="Button1"
|
||||
disabled={false}
|
||||
onClick={() => {}}
|
||||
onClick={() => {
|
||||
// noop
|
||||
}}
|
||||
/>
|
||||
);
|
||||
expect(renderToJson(wrapper)).toMatchSnapshot();
|
||||
|
|
|
@ -6,7 +6,14 @@ import { options } from '../src/Select/options';
|
|||
|
||||
describe('Select', function () {
|
||||
it('renders correctly', () => {
|
||||
const wrapper = render(<Select options={options} onChange={() => {}} />);
|
||||
const wrapper = render(
|
||||
<Select
|
||||
options={options}
|
||||
onChange={() => {
|
||||
// noop
|
||||
}}
|
||||
/>
|
||||
);
|
||||
expect(renderToJson(wrapper)).toMatchSnapshot();
|
||||
});
|
||||
|
||||
|
@ -14,7 +21,9 @@ describe('Select', function () {
|
|||
const wrapper = render(
|
||||
<Select
|
||||
options={options}
|
||||
onChange={() => {}}
|
||||
onChange={() => {
|
||||
// noop
|
||||
}}
|
||||
value="one"
|
||||
menuMaxHeight={20}
|
||||
clearable
|
||||
|
|
Loading…
Reference in New Issue
Block a user