freiksenet / react-kinetic

HTML5 Canvas via KineticJS using React.
http://freiksenet.github.io/react-kinetic/
MIT License
66 stars 7 forks source link

Added simple tests for Circle, Text and TextPath rendering. #15

Closed mjul closed 10 years ago

mjul commented 10 years ago

Text and TextPath are not currently working. Here are some tests to get started.

freiksenet commented 10 years ago

I think it's better to test that kineticNode (component.getKineticNode()) have correct properties, not that our component have correct props. Latter would be testing react, not this library.

freiksenet commented 10 years ago

Same way we can test that something is rendered by checking if Layer (or Stage) kinetic node have relevant children.

mjul commented 10 years ago

OK, I will submit new tests with a smaller unit.