Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
chore(typescript): add tests for null and false children
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke John authored and Luke John committed Jan 8, 2018
1 parent 7912617 commit 7b5ad84
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/glamorous.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,18 @@ const usePropsAreCssOverrides = (

const BuiltinSingleElement: JSX.Element = <glamorous.Div />;

const BuiltinSingleNullChild: JSX.Element = (
<glamorous.Div>
{null}
</glamorous.Div>
);

const BuiltinSingleFalseChild: JSX.Element = (
<glamorous.Div>
{false}
</glamorous.Div>
);

const BuiltinSingleChild: JSX.Element = (
<glamorous.Div>
<glamorous.Span>Hello, world!</glamorous.Span>
Expand Down

0 comments on commit 7b5ad84

Please sign in to comment.