simonihmig / ember-window-mock

Mock window global in tests with test-friendly replacements for location, alert/confirm/prompt/ and more.
MIT License
64 stars 17 forks source link

Revert "Support mocking window.location.origin" #574

Closed simonihmig closed 1 month ago

simonihmig commented 1 month ago

The change was wrong, origin is read-only and should just follow what you set via window.location.href, no need to have it diverge as this cannot happen in a real browser API.