xchain-components
Version:
Xchain Components
29 lines (24 loc) • 602 B
JavaScript
/* @flow */
/* eslint react/jsx-filename-extension: 0 */
import React from 'react';
import { shallow } from 'enzyme';
import XDropDown from '..';
describe('XDropDown', () => {
const menusText = [
{
key: '1',
value: 'a',
text: 'aaaaaaa',
icon: 'home',
},
{
key: '2',
value: 'b',
text: 'bbbbbbb',
},
];
it('should render correctly without any style props', () => {
const component = shallow(<XDropDown menuItems={menusText} placeholder="Select TestCase" dropdownWidth="100px" />);
expect(component).toMatchSnapshot();
});
});