Added test for Area

This commit is contained in:
khanhas
2018-06-10 02:54:37 +07:00
parent 7f9f32d9c2
commit 70c88af46e
+15
View File
@@ -124,3 +124,18 @@ class GridTest extends React.Component {
);
}
}
class AreaTest extends React.Component {
render() {
return (
<Area>
<Area.Rectangle height={10} width={20} x={30} y={40} />
<Area.Path d="test" fillMode="nonzero" />
<Area.Text fontSize={30}>
Parent text
<Area.Text fontWeight="maximum">Nested Text</Area.Text>
</Area.Text>
</Area>
);
}
}