Skip to content

Commit ddaa99a

Browse files
committed
Fixing standard issues
1 parent a0293ab commit ddaa99a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spec/lib/generators/strapi/component_generator_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333
end
3434

3535
it "should contain the component name" do
36-
expect(File.read(query_file_path)).to match /ComponentBlocksGenTest/
36+
expect(File.read(query_file_path)).to match(/ComponentBlocksGenTest/)
3737
end
3838

3939
it "should include params" do
40-
expect(File.read(query_file_path)).to match /title/
41-
expect(File.read(query_file_path)).to match /textContent/
40+
expect(File.read(query_file_path)).to match(/title/)
41+
expect(File.read(query_file_path)).to match(/textContent/)
4242
end
4343
end
4444

@@ -48,7 +48,7 @@
4848
end
4949

5050
it "should contain the correct example" do
51-
expect(File.read(query_test_path)).to match /a strapi graphql component/
51+
expect(File.read(query_test_path)).to match(/a strapi graphql component/)
5252
end
5353
end
5454

@@ -58,7 +58,7 @@
5858
end
5959

6060
it "should contain the correct component name" do
61-
expect(File.read(mapping_file_path)).to match /Cms::GenTestComponent/
61+
expect(File.read(mapping_file_path)).to match(/Cms::GenTestComponent/)
6262
end
6363
end
6464

@@ -68,7 +68,7 @@
6868
end
6969

7070
it "should contain the correct component name" do
71-
expect(File.read(mapping_test_path)).to match /Cms::GenTestComponent/
71+
expect(File.read(mapping_test_path)).to match(/Cms::GenTestComponent/)
7272
end
7373
end
7474

@@ -78,7 +78,7 @@
7878
end
7979

8080
it "should contain strapi component name" do
81-
expect(File.read(mock_path)).to match /strapi_component \"blocks.gen-test\"/
81+
expect(File.read(mock_path)).to match(/strapi_component "blocks.gen-test"/)
8282
end
8383
end
8484

0 commit comments

Comments
 (0)