feature/test-coverage #27
@@ -18,7 +18,7 @@ describe('smoothScroll', () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
// Mock scrollIntoView
|
// Mock scrollIntoView
|
||||||
mockScrollIntoView = vi.fn();
|
mockScrollIntoView = vi.fn();
|
||||||
HTMLElement.prototype.scrollIntoView = mockScrollIntoView;
|
HTMLElement.prototype.scrollIntoView = mockScrollIntoView as (arg?: boolean | ScrollIntoViewOptions) => void;
|
||||||
|
|
||||||
// Mock history.pushState
|
// Mock history.pushState
|
||||||
mockPushState = vi.fn();
|
mockPushState = vi.fn();
|
||||||
|
|||||||
Reference in New Issue
Block a user