mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
cb6aeb7bfd
Two cases replaced window.location wholesale to spy on reload. The copy is flat, the real object's fields are getters on its prototype, so the replacement has no href for a relative request URL to resolve against and the DELETE the leave-trip case waits for never reached the mock server. It also stayed replaced for the rest of the file, which took six later cases down with it. The leave-trip case asserts the request, so it keeps the real location: jsdom's reload only logs. The transfer case asserts the reload, so it keeps the stub, and the original is put back after every test. Nobody saw this: the client coverage job needs i18n parity, which has been red.