Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use URL API #8716

Merged
merged 4 commits into from
May 3, 2024
Merged

refactor: use URL API #8716

merged 4 commits into from
May 3, 2024

Conversation

mister-ben
Copy link
Contributor

Description

Replaces some now unnecessary fallbacks with the standard URL API.
parseUrl new returns an actual URL instead of a URL-like object.
Updates tests slightly: getAbsoluteURL() to match URL's behaviour with trailing slashes, and use a URL object in the cross origin tests.
Adds a test for getAbsoluteURL() with a relative URL

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
    • Change has been verified in an actual browser (Chrome, Firefox, IE)
    • Unit Tests updated or fixed
  • Reviewed by Two Core Contributors

Copy link

codecov bot commented Apr 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.97%. Comparing base (cb76a24) to head (0679fdb).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8716      +/-   ##
==========================================
- Coverage   83.00%   82.97%   -0.04%     
==========================================
  Files         120      120              
  Lines        7998     7978      -20     
  Branches     1927     1921       -6     
==========================================
- Hits         6639     6620      -19     
+ Misses       1359     1358       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

test/unit/utils/url.test.js Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants