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