File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
app/views/importmap_mocha/test Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 33< head >
44< meta charset ="utf-8 " />
55< title > Results of test execution </ title >
6+ <% if Rails . application . config . importmap_mocha_scripts . size > 0 %>
7+ <%= javascript_include_tag *Rails . application . config . importmap_mocha_scripts %>
8+ <% end %>
69<%= javascript_include_tag 'mocha' , 'chai' %>
710<%= stylesheet_link_tag 'mocha' %>
811<%= javascript_importmap_tags 'importmap_mocha' %>
Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ class Engine < ::Rails::Engine
4242 unless Rails . application . config . respond_to? ( :importmap_mocha_style )
4343 Rails . application . config . importmap_mocha_style = 'bdd'
4444 end
45+ unless Rails . application . config . respond_to? ( :importmap_mocha_scripts )
46+ Rails . application . config . importmap_mocha_scripts = [ ]
47+ end
4548 end
4649 end
4750end
You can’t perform that action at this time.
0 commit comments