web: Components: Fixed render test and added tests for ComboBox component.
This commit is contained in:
parent
4c1fd257d8
commit
0de72bea4a
@ -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} />);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user