web: Components: Fixed render test and added tests for ComboBox component.

This commit is contained in:
Ilya Oleshko 2019-09-19 09:22:22 +03:00
parent 4c1fd257d8
commit 0de72bea4a

View File

@ -38,7 +38,6 @@ const baseProps = {
opened: false,
onSelect: () => jest.fn(),
size: 'base',
dropDownMaxHeight: 200,
scaled: true
};
@ -77,6 +76,12 @@ describe('<ComboBox />', () => {
expect(wrapper.prop('opened')).toEqual(true);
});
it('not scaled button', () => {
const wrapper = mount(<ComboBox {...baseProps} dropDownMaxHeight={200} />);
expect(wrapper.prop('dropDownMaxHeight')).toEqual(200);
});
it('not scaled button', () => {
const wrapper = mount(<ComboBox {...baseProps} scaled={false} />);