Skip to content

Commit

Permalink
Update assert to show multiple options are carried over
Browse files Browse the repository at this point in the history
  • Loading branch information
vietqhoang committed Oct 24, 2024
1 parent c110d4a commit 9e35750
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/files/pins_with_various_options_importmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
pin "not_there", to: "nowhere.js", preload: false # 1.9.1
pin "some_file" # 0.2.1
pin "another_file",to:'another_file.js' # @0.0.16
pin "random", random_option: "foobar" # 7.7.7
pin "random", random_option: "foobar", hello: "world" # 7.7.7
2 changes: 1 addition & 1 deletion test/packager_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def code() "200" end
assert_equal %(pin "react" # @17.0.2), @packager.vendored_pin_for("react", "https://cdn/[email protected]")
assert_equal %(pin "javascript/react", to: "javascript--react.js" # @17.0.2), @packager.vendored_pin_for("javascript/react", "https://cdn/[email protected]")
assert_equal %(pin "md5", preload: true # @2.1.3), @packager.vendored_pin_for("md5", "https://cdn/[email protected]")
assert_equal %(pin "random", random_option: "foobar" # @8.8.8), @packager.vendored_pin_for("random", "https://cdn/[email protected]")
assert_equal %(pin "random", random_option: "foobar", hello: "world" # @8.8.8), @packager.vendored_pin_for("random", "https://cdn/[email protected]")
end

test "pin_options_for_package" do
Expand Down

0 comments on commit 9e35750

Please sign in to comment.