Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Harrington committed Feb 8, 2018
1 parent 954eeea commit 1eddf83
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ const { shallow } = require('enzyme');
const Checkbox = require('../../src/form-components/CheckboxWidget');

test('should not render description', () => {
const props = {
label: 'test',
};
const checkbox = shallow(<Checkbox props={props} />);
expect(checkbox.render().html()).toMatchSnapshot();
const checkbox = shallow(
<Checkbox
id="id"
label="label"
required
onChange={() => {}}
schema={{ description: 'description' }}
/>,
);
expect(checkbox.html()).not.toMatch(/description/);
});

This file was deleted.

0 comments on commit 1eddf83

Please sign in to comment.