UNPKG
swgs
Version:
latest (3.3.0)
3.3.0
swgs is a compatiblity layer between svg and react-native-svg
msand/swgs
swgs
/
crna-example
/
components
/
__tests__
/
StyledText-test.js
11 lines
(8 loc)
•
286 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
'react-native'
;
import
React
from
'react'
;
import
{
MonoText
}
from
'../StyledText'
;
import
renderer
from
'react-test-renderer'
;
it
(
'renders correctly'
,
() =>
{
const
tree = renderer.
create
(
<
MonoText
>
Snapshot test!
</
MonoText
>
).
toJSON
();
expect
(tree).
toMatchSnapshot
(); });