import {mountWithTheme} from 'sentry-test/enzyme'; import {MultiSelectField} from 'sentry/components/deprecatedforms'; import Form from 'sentry/components/deprecatedforms/form'; describe('MultiSelectField', function () { describe('render()', function () { it('renders without form context', function () { const wrapper = mountWithTheme( ); expect(wrapper).toSnapshot(); }); it('has the right value from props', function () { const wrapper = mountWithTheme( ); expect(wrapper.find('StyledSelectControl').prop('value')).toEqual(['a']); }); it('renders with form context', function () { const wrapper = mountWithTheme(
); expect(wrapper.find('StyledSelectControl').prop('value')).toEqual(['a', 'b']); }); }); });