@@ -3,7 +3,7 @@ import { Difficulty, Mode, Mode2 } from "@monkeytype/contracts/schemas/shared";
33import { compressToURI } from "lz-ts" ;
44import * as UpdateConfig from "../../src/ts/config" ;
55import * as Notifications from "../../src/ts/elements/notifications" ;
6- import { CustomTextSettings } from "../../src/ts/test/custom-text" ;
6+ import * as CustomText from "../../src/ts/test/custom-text" ;
77import * as TestLogic from "../../src/ts/test/test-logic" ;
88import * as TestState from "../../src/ts/test/test-state" ;
99import * as Misc from "../../src/ts/utils/misc" ;
@@ -33,6 +33,8 @@ describe("url-handler", () => {
3333 const restartTestMock = vi . spyOn ( TestLogic , "restart" ) ;
3434 const addNotificationMock = vi . spyOn ( Notifications , "add" ) ;
3535
36+ const setCustomTextMock = vi . spyOn ( CustomText , "setText" ) ;
37+
3638 beforeEach ( ( ) => {
3739 [
3840 findGetParameterMock ,
@@ -48,6 +50,7 @@ describe("url-handler", () => {
4850 setFunboxMock ,
4951 restartTestMock ,
5052 addNotificationMock ,
53+ setCustomTextMock ,
5154 ] . forEach ( ( it ) => it . mockReset ( ) ) ;
5255
5356 findGetParameterMock . mockImplementation ( ( override ) => override ) ;
@@ -262,7 +265,7 @@ const urlData = (
262265 data : Partial < {
263266 mode : Mode | undefined ;
264267 mode2 : Mode2 < any > | number ;
265- customText : CustomTextSettings ;
268+ customText : CustomText . CustomTextSettings ;
266269 punctuation : boolean ;
267270 numbers : boolean ;
268271 language : string ;
0 commit comments