import React from 'react'; import {shallow} from 'sentry-test/enzyme'; import {BooleanField} from 'app/components/forms'; describe('BooleanField', function() { describe('render()', function() { it('renders without form context', function() { const wrapper = shallow(); expect(wrapper).toMatchSnapshot(); }); it('renders with form context', function() { const wrapper = shallow(, { context: { form: { data: { fieldName: true, }, errors: {}, }, }, }); expect(wrapper).toMatchSnapshot(); }); }); });