@@ -72,8 +72,19 @@ describe('PageManagement', () => {
7272 ? vi . fn ( ) . mockImplementation ( overrides . sendBiDiCommand )
7373 : undefined ;
7474
75- const pages = new PageManagement ( driver , getCurrentContextId , setCurrentContextId , sendBiDiCommand as any ) ;
76- return { pages, driver, getCurrentContextId, setCurrentContextId, sendBiDiCommand : sendBiDiCommand as any } ;
75+ const pages = new PageManagement (
76+ driver ,
77+ getCurrentContextId ,
78+ setCurrentContextId ,
79+ sendBiDiCommand as any
80+ ) ;
81+ return {
82+ pages,
83+ driver,
84+ getCurrentContextId,
85+ setCurrentContextId,
86+ sendBiDiCommand : sendBiDiCommand as any ,
87+ } ;
7788 }
7889
7990 describe ( 'navigate' , ( ) => {
@@ -151,7 +162,12 @@ describe('PageManagement', () => {
151162 const getCurrentContextId = vi . fn ( ) . mockReturnValue ( 'handle-2' ) ;
152163 const setCurrentContextId = vi . fn ( ) ;
153164
154- const pages = new PageManagement ( driver , getCurrentContextId , setCurrentContextId , bidiFn as any ) ;
165+ const pages = new PageManagement (
166+ driver ,
167+ getCurrentContextId ,
168+ setCurrentContextId ,
169+ bidiFn as any
170+ ) ;
155171
156172 const idx = await pages . createNewPage ( 'moz-extension://abc123/popup.html' ) ;
157173
@@ -179,7 +195,12 @@ describe('PageManagement', () => {
179195 const getCurrentContextId = vi . fn ( ) . mockReturnValue ( 'handle-2' ) ;
180196 const setCurrentContextId = vi . fn ( ) ;
181197
182- const pages = new PageManagement ( driver , getCurrentContextId , setCurrentContextId , bidiFn as any ) ;
198+ const pages = new PageManagement (
199+ driver ,
200+ getCurrentContextId ,
201+ setCurrentContextId ,
202+ bidiFn as any
203+ ) ;
183204
184205 const idx = await pages . createNewPage ( 'https://example.com' ) ;
185206
0 commit comments