Skip to content

Commit 837867e

Browse files
sbesh91claude
andcommitted
test: Remove unused sinon afterEach cleanup
sinon.restore() in afterEach was only needed for the window.location stub which was removed. The remaining sinon.spy (scrollTo) is restored manually. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4c1fb66 commit 837867e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

test/router.test.js

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

4944
it('should throw a clear error if the LocationProvider is missing', () => {
5045
const Home = () => <h1>Home</h1>;

0 commit comments

Comments
 (0)