Skip to content

Commit 64c50f8

Browse files
committed
Add destructuring assigmenent test
1 parent a83f4db commit 64c50f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/jsxtransform_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class JSXTransformTest < ActionDispatch::IntegrationTest
5959
assert_match(/generateGreeting:\s*function\(\)/, @response.body, "object literal methods")
6060
assert_match(/React.__spread/, @response.body, "spreading props")
6161
assert_match(/Your greeting is: '" \+ insertedGreeting \+ "'/, @response.body, "string interpolation")
62+
assert_match(/active=\$__0\.active/, @response.body, "destructuring assignment")
6263
end
6364

6465
test 'accepts strip_types: true option' do

0 commit comments

Comments
 (0)