diff --git a/test/fixtures/invalid.cjsx b/test/fixtures/invalid.cjsx new file mode 100644 index 0000000..ce17f8c --- /dev/null +++ b/test/fixtures/invalid.cjsx @@ -0,0 +1,14 @@ +# @cjsx React.DOM + +React = require('react') + +Car = React.createClass + render: -> + Vehicle doors={$$$} locked={isLocked()} data-colour="red" on> + Which seat can I take? {@props?.seat or 'none'}

+ + +React.renderComponent , + document.getElementById 'container' diff --git a/test/fixtures/valid.cjsx b/test/fixtures/valid.cjsx new file mode 100644 index 0000000..699006c --- /dev/null +++ b/test/fixtures/valid.cjsx @@ -0,0 +1,14 @@ +# @cjsx React.DOM + +React = require('react') + +Car = React.createClass + render: -> + + + +

Which seat can I take? {@props?.seat or 'none'}

+
+ +React.renderComponent , + document.getElementById 'container'