Skip to content

Commit c77a900

Browse files
sbesh91claude
andcommitted
test: Remove non-configurable window.location stub
sinon cannot stub window.location in modern browsers as it is non-configurable and non-writable. The stub was a leftover from before the Navigation API refactor — location.assign/replace are no longer used in the router or tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 15f16cf commit c77a900

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/router.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ describe('Router', () => {
4040
document.body.appendChild(scratch);
4141
history.replaceState(null, null, '/');
4242
});
43+
44+
afterEach(() => {
45+
sinon.restore();
46+
});
4347

4448

4549
it('should throw a clear error if the LocationProvider is missing', () => {

0 commit comments

Comments
 (0)