File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
spec/lib/generators/strapi Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 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
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
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
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
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
You can’t perform that action at this time.
0 commit comments