Skip to content

Commit 9362b7e

Browse files
committed
Add JSX+ES6 transformation test case
1 parent ddebd78 commit 9362b7e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div/>;

test/react/jsx_test.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ class JSXTransformTest < ActionDispatch::IntegrationTest
4242

4343
assert_equal EXPECTED_JS.gsub(/\s/, ''), @response.body.gsub(/\s/, '')
4444
end
45+
46+
test 'asset pipeline should transform JSX + ES6' do
47+
get '/assets/ecmascript6_example.js'
48+
assert_response :success
49+
50+
assert_equal EXPECTED_JS.gsub(/\s/, ''), @response.body.gsub(/\s/, '')
51+
end
4552

4653
test 'asset pipeline should transform JSX + Coffeescript' do
4754
get '/assets/example2.js'

0 commit comments

Comments
 (0)