@@ -99,35 +99,35 @@ def setup
99
99
100
100
test "preloaded modules are included in preload tags when no entry_point specified" do
101
101
preloading_module_paths = @importmap . preloaded_module_paths ( resolver : ApplicationController . helpers ) . to_s
102
- assert_match /md5/ , preloading_module_paths
103
- assert_match /goodbye_controller/ , preloading_module_paths
104
- assert_match /leaflet/ , preloading_module_paths
105
- assert_no_match /application/ , preloading_module_paths
106
- assert_no_match /tinymce/ , preloading_module_paths
102
+ assert_match ( /md5/ , preloading_module_paths )
103
+ assert_match ( /goodbye_controller/ , preloading_module_paths )
104
+ assert_match ( /leaflet/ , preloading_module_paths )
105
+ assert_no_match ( /application/ , preloading_module_paths )
106
+ assert_no_match ( /tinymce/ , preloading_module_paths )
107
107
end
108
108
109
109
test "preloaded modules are included in preload tags based on single entry_point provided" do
110
110
preloading_module_paths = @importmap . preloaded_module_paths ( resolver : ApplicationController . helpers , entry_point : "alternate" ) . to_s
111
- assert_no_match /leaflet/ , preloading_module_paths
112
- assert_match /tinymce/ , preloading_module_paths
113
- assert_match /chartkick/ , preloading_module_paths
114
- assert_match /md5/ , preloading_module_paths
115
- assert_match /goodbye_controller/ , preloading_module_paths
116
- assert_no_match /application/ , preloading_module_paths
111
+ assert_no_match ( /leaflet/ , preloading_module_paths )
112
+ assert_match ( /tinymce/ , preloading_module_paths )
113
+ assert_match ( /chartkick/ , preloading_module_paths )
114
+ assert_match ( /md5/ , preloading_module_paths )
115
+ assert_match ( /goodbye_controller/ , preloading_module_paths )
116
+ assert_no_match ( /application/ , preloading_module_paths )
117
117
end
118
118
119
119
test "preloaded modules are included in preload tags based on multiple entry_points provided" do
120
120
preloading_module_paths = @importmap . preloaded_module_paths ( resolver : ApplicationController . helpers , entry_point : [ "application" , "alternate" ] ) . to_s
121
- assert_match /leaflet/ , preloading_module_paths
122
- assert_match /tinymce/ , preloading_module_paths
123
- assert_match /chartkick/ , preloading_module_paths
124
- assert_match /md5/ , preloading_module_paths
125
- assert_match /goodbye_controller/ , preloading_module_paths
126
- assert_no_match /application/ , preloading_module_paths
121
+ assert_match ( /leaflet/ , preloading_module_paths )
122
+ assert_match ( /tinymce/ , preloading_module_paths )
123
+ assert_match ( /chartkick/ , preloading_module_paths )
124
+ assert_match ( /md5/ , preloading_module_paths )
125
+ assert_match ( /goodbye_controller/ , preloading_module_paths )
126
+ assert_no_match ( /application/ , preloading_module_paths )
127
127
end
128
128
129
129
test "digest" do
130
- assert_match /^\w {40}$/ , @importmap . digest ( resolver : ApplicationController . helpers )
130
+ assert_match ( /^\w {40}$/ , @importmap . digest ( resolver : ApplicationController . helpers ) )
131
131
end
132
132
133
133
test "separate caches" do
0 commit comments