Skip to content

Commit c110d4a

Browse files
committed
Add test to make it clear any defined option is carried over
1 parent 9709923 commit c110d4a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/fixtures/files/pins_with_various_options_importmap.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
pin "not_there", to: "nowhere.js", preload: false # 1.9.1
55
pin "some_file" # 0.2.1
66
pin "another_file",to:'another_file.js' # @0.0.16
7+
pin "random", random_option: "foobar" # 7.7.7

test/packager_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def code() "200" end
5555
assert_equal %(pin "react" # @17.0.2), @packager.vendored_pin_for("react", "https://cdn/[email protected]")
5656
assert_equal %(pin "javascript/react", to: "javascript--react.js" # @17.0.2), @packager.vendored_pin_for("javascript/react", "https://cdn/[email protected]")
5757
assert_equal %(pin "md5", preload: true # @2.1.3), @packager.vendored_pin_for("md5", "https://cdn/[email protected]")
58+
assert_equal %(pin "random", random_option: "foobar" # @8.8.8), @packager.vendored_pin_for("random", "https://cdn/[email protected]")
5859
end
5960

6061
test "pin_options_for_package" do

0 commit comments

Comments
 (0)