From 220f9307a9f0f9b4f5e067b457585e8c8171736f Mon Sep 17 00:00:00 2001 From: Xavier Drdak <1198051+xdrdak@users.noreply.github.com> Date: Tue, 15 Oct 2019 10:47:56 -0400 Subject: [PATCH] Fix checkbox custom component tests --- packages/flame/src/Checkbox/Checkbox.test.tsx | 8 ++++---- .../src/Checkbox/__snapshots__/Checkbox.test.tsx.snap | 9 ++++++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/packages/flame/src/Checkbox/Checkbox.test.tsx b/packages/flame/src/Checkbox/Checkbox.test.tsx index 5f601ad5..3e798dee 100644 --- a/packages/flame/src/Checkbox/Checkbox.test.tsx +++ b/packages/flame/src/Checkbox/Checkbox.test.tsx @@ -12,8 +12,8 @@ type RenderTest = { indeterminate?: boolean; id?: string; value?: string; - label?: string | Function; - description?: string | Function; + label?: any; + description?: any; }; }; @@ -34,8 +34,8 @@ describe('', () => { props: { id: 'id', value: 'value', - label: () =>
Label
, - description: () =>
Description
, + label:
Label
, + description:
Description
, }, }, ]; diff --git a/packages/flame/src/Checkbox/__snapshots__/Checkbox.test.tsx.snap b/packages/flame/src/Checkbox/__snapshots__/Checkbox.test.tsx.snap index c5fa3728..6d37fd14 100644 --- a/packages/flame/src/Checkbox/__snapshots__/Checkbox.test.tsx.snap +++ b/packages/flame/src/Checkbox/__snapshots__/Checkbox.test.tsx.snap @@ -132,11 +132,18 @@ exports[` Snapshots when all props and label/description with html s +
+ Label +
+ > +
+ Description +
+
`;