test(smoothScroll): cast mock to the proper type
This commit is contained in:
1 parent
e81cadb32a
commit
51ea8a9902
1 file changed
+1
-1
@@ -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