Skip to content

Commit 3ad32d3

Browse files
committed
fix(harmony) more flexible whitespace in test
1 parent 7d2bf37 commit 3ad32d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jsxtransform_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class JSXTransformTest < ActionDispatch::IntegrationTest
5656
React::JSX.transform_options = {harmony: true}
5757
get 'assets/harmony_example.js'
5858
assert_response :success
59-
assert_match(/generateGreeting:function\(\)/, @response.body, "object literal methods")
59+
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")
6262
end

0 commit comments

Comments
 (0)