File tree Expand file tree Collapse file tree
packages/repack/src/modules/ScriptManager/__tests__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ describe('ScriptManagerAPI', () => {
8282 it ( 'throw error if there are no resolvers' , async ( ) => {
8383 const spy = jest . spyOn (
8484 ScriptManager . shared ,
85- 'handleError' as keyof ScriptManager
85+ 'handleError' as keyof ScriptManager [ 'handleError' ]
8686 ) ;
8787
8888 await expect (
@@ -100,7 +100,7 @@ describe('ScriptManagerAPI', () => {
100100 it ( 'throw error if no resolvers handled request' , async ( ) => {
101101 const spy = jest . spyOn (
102102 ScriptManager . shared ,
103- 'handleError' as keyof ScriptManager
103+ 'handleError' as keyof ScriptManager [ 'handleError' ]
104104 ) ;
105105
106106 ScriptManager . shared . addResolver ( async ( ) => undefined ) ;
@@ -121,7 +121,7 @@ describe('ScriptManagerAPI', () => {
121121 it ( 'remove all resolvers' , async ( ) => {
122122 const spy = jest . spyOn (
123123 ScriptManager . shared ,
124- 'handleError' as keyof ScriptManager
124+ 'handleError' as keyof ScriptManager [ 'handleError' ]
125125 ) ;
126126
127127 ScriptManager . shared . addResolver ( async ( ) => undefined ) ;
You can’t perform that action at this time.
0 commit comments