Sha256: 67132765be6f0bb018aa28a0202593f77964bcf50ac18e711efe156068fba477
Contents?: true
Size: 873 Bytes
Versions: 2
Compression:
Stored size: 873 Bytes
Contents
Feature: Transforming JSX into Javascript when it is written in Coffeescript Background: Given a fixture app "app" Given a successfully built app at "app" Scenario: A JSX file written in coffeescript When I cd to "build" Then the following files should exist: | assets/javascripts/coffeescript.js | When I run `cat assets/javascripts/coffeescript.js` Then the stdout from "cat assets/javascripts/coffeescript.js" should contain exactly: """ /** @jsx React.DOM */ (function() { this.app.components.test = React.createClass({displayName: "test", render: function() { return React.createElement("div", null, React.createElement(TestComponent, {data: this.props.someData}) ); } }); }).call(this); """ And the exit status should be 0
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
middleman-react-0.13.3 | spec/features/coffeescript.feature |
middleman-react-0.13.1 | spec/features/coffeescript.feature |