From 2dd86ce7044b6e9ba1237137883f6bc3affd45a8 Mon Sep 17 00:00:00 2001 From: ezekg Date: Tue, 12 Jan 2016 09:58:26 -0600 Subject: [PATCH] add fixtures for cjsx --- test/fixtures/invalid.cjsx | 14 ++++++++++++++ test/fixtures/valid.cjsx | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 test/fixtures/invalid.cjsx create mode 100644 test/fixtures/valid.cjsx 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'