Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ling1726 committed Feb 11, 2021
1 parent 59127e9 commit 96e3855
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ describe('MenuItemCheckbox conformance', () => {
* Note: see more visual regression tests for MenuItemCheckbox in /apps/vr-tests.
*/
it('renders a default state', () => {
const component = renderer.create(<MenuItemCheckbox>Default MenuItemCheckbox</MenuItemCheckbox>);
const component = renderer.create(
<MenuItemCheckbox name="checkbox" value="1">
Default MenuItemCheckbox
</MenuItemCheckbox>,
);
const tree = component.toJSON();
expect(tree).toMatchSnapshot();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ describe('MenuItemRadio', () => {
* Note: see more visual regression tests for MenuItemRadio in /apps/vr-tests.
*/
it('renders a default state', () => {
const component = renderer.create(<MenuItemRadio>Default MenuItemRadio</MenuItemRadio>);
const component = renderer.create(
<MenuItemRadio name="radio" value="1">
Default MenuItemRadio
</MenuItemRadio>,
);
const tree = component.toJSON();
expect(tree).toMatchSnapshot();
});
Expand Down

0 comments on commit 96e3855

Please sign in to comment.