Skip to content

Commit 7361cb8

Browse files
committed
Fix rubocop issues
1 parent bd15add commit 7361cb8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

test/generators/coffee_component_generator_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def filename
1717
run_generator %w[GeneratedComponent name]
1818

1919
es6 = File.read(File.join(destination_root, "app/javascript/components/GeneratedComponent.js"))
20+
2021
assert_match(/const GeneratedComponent = \(props\) => {/, es6)
2122
end
2223
else

test/generators/es6_component_generator_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def filename
1919
end
2020

2121
def component_name
22-
'GeneratedComponent'
22+
"GeneratedComponent"
2323
end
2424

2525
test "uses es6 syntax" do

test/test_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def expected_working_jsx
8686
end
8787

8888
def expected_working_jsx_in_function_component
89-
/\.createElement\(\s*\S*\.Fragment,\s*null,\s*\"Name:\s*\",\s*props\.name,\s*\"Address:\s*\",\s*props\.address\s*\)/x
89+
/\.createElement\(\s*\S*\.Fragment,\s*null,\s*"Name:\s*",\s*props\.name,\s*"Address:\s*",\s*props\.address\s*\)/x
9090
end
9191

9292
module ParamsHelper

0 commit comments

Comments
 (0)