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 a10f44d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/glamorous.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -564,3 +564,19 @@ const BuiltinStyledWithMultipleChild: JSX.Element = (
<glamorous.Span>world!</glamorous.Span>
</glamorous.Div>
);

const BuiltinStyledWithPrimitivesChildren: JSX.Element = (
<glamorous.Div color='red'>
{null}
{false}
{true}
{undefined}
{5}
</glamorous.Div>
);

const BuiltinStyledWithFragment: JSX.Element = (
<glamorous.Div color='red'>
<React.Fragment />
</glamorous.Div>
);

0 comments on commit a10f44d

Please sign in to comment.