-
-
Notifications
You must be signed in to change notification settings - Fork 637
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for <Box display="none">
- Loading branch information
Vadim Demedes
committed
Apr 12, 2020
1 parent
168448c
commit b51476c
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import test from 'ava'; | ||
import {renderToString} from './helpers/render-to-string'; | ||
import {Box} from '../src'; | ||
|
||
test('display flex', t => { | ||
const output = renderToString(<Box display="flex">X</Box>); | ||
t.is(output, 'X'); | ||
}); | ||
|
||
test('display none', t => { | ||
const output = renderToString( | ||
<Box flexDirection="column"> | ||
<Box display="none">Kitty!</Box> | ||
<Box>Doggo</Box> | ||
</Box> | ||
); | ||
|
||
t.is(output, 'Doggo'); | ||
}); |