Skip to content

Commit

Permalink
Update tests to support versioned assets
Browse files Browse the repository at this point in the history
  • Loading branch information
essenciary committed Nov 21, 2023
1 parent 51c19d3 commit 6dd481f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tests_Assets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
@test Assets.channels()[1:18] == "window.Genie = {};"
@test channels_script()[1:27] == "<script>\nwindow.Genie = {};"

@test channels_support() == "<script src=\"/genie.jl/master/assets/js/channels.js\"></script>"
@test Genie.Router.routes()[1].path == "/genie.jl/master/assets/js/channels.js"
@test channels_support() == "<script src=\"/genie.jl/$(Genie.Assets.package_version("Genie"))/assets/js/channels.js\"></script>"
@test Genie.Router.routes()[1].path == "/genie.jl/$(Genie.Assets.package_version("Genie"))/assets/js/channels.js"
@test Genie.Router.channels()[1].path == "/$(Genie.config.webchannels_default_route)/unsubscribe"
@test Genie.Router.channels()[2].path == "/$(Genie.config.webchannels_default_route)/subscribe"

Expand Down

2 comments on commit 6dd481f

@essenciary
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/95685

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v5.23.1 -m "<description of version>" 6dd481f3712f4ad3b27eb94cb9ff42dc661377ad
git push origin v5.23.1

Please sign in to comment.