test(smoothScroll): cast mock to the proper type
This commit is contained in:
@@ -18,7 +18,7 @@ describe('smoothScroll', () => {
|
||||
beforeEach(() => {
|
||||
// Mock scrollIntoView
|
||||
mockScrollIntoView = vi.fn();
|
||||
HTMLElement.prototype.scrollIntoView = mockScrollIntoView;
|
||||
HTMLElement.prototype.scrollIntoView = mockScrollIntoView as (arg?: boolean | ScrollIntoViewOptions) => void;
|
||||
|
||||
// Mock history.pushState
|
||||
mockPushState = vi.fn();
|
||||
|
||||
Reference in New Issue
Block a user