Skip to content

Commit

Permalink
Fix checkbox custom component tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xdrdak committed Oct 15, 2019
1 parent 0aff970 commit 220f930
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/flame/src/Checkbox/Checkbox.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ type RenderTest = {
indeterminate?: boolean;
id?: string;
value?: string;
label?: string | Function;
description?: string | Function;
label?: any;
description?: any;
};
};

Expand All @@ -34,8 +34,8 @@ describe('<Checkbox />', () => {
props: {
id: 'id',
value: 'value',
label: () => <div>Label</div>,
description: () => <div>Description</div>,
label: <div>Label</div>,
description: <div>Description</div>,
},
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,18 @@ exports[`<Checkbox /> Snapshots when all props and label/description with html s
</svg>
</div>
</div>
<div>
Label
</div>
</label>
<div
className="emotion-11 emotion-12"
size="small"
/>
>
<div>
Description
</div>
</div>
</div>
`;

Expand Down

0 comments on commit 220f930

Please sign in to comment.