import React from 'react';
import {shallow} from 'enzyme';
import {MultipleCheckboxField} from 'app/components/forms';
describe('MultipleCheckboxField', 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: ['1'],
},
errors: {},
},
},
}
);
expect(wrapper).toMatchSnapshot();
});
});
});