@@ -23,7 +23,10 @@ describe('instrumentDurableObjectWithSentry', () => {
23
23
return 'sync-result' ;
24
24
}
25
25
} ;
26
- const obj = Reflect . construct ( instrumentDurableObjectWithSentry ( vi . fn ( ) . mockReturnValue ( { } ) , testClass as any ) , [ ] ) as any ;
26
+ const obj = Reflect . construct (
27
+ instrumentDurableObjectWithSentry ( vi . fn ( ) . mockReturnValue ( { } ) , testClass as any ) ,
28
+ [ ] ,
29
+ ) as any ;
27
30
expect ( obj . method ) . toBe ( obj . method ) ;
28
31
29
32
const result = obj . method ( ) ;
@@ -37,7 +40,10 @@ describe('instrumentDurableObjectWithSentry', () => {
37
40
return 'async-result' ;
38
41
}
39
42
} ;
40
- const obj = Reflect . construct ( instrumentDurableObjectWithSentry ( vi . fn ( ) . mockReturnValue ( { } ) , testClass as any ) , [ ] ) as any ;
43
+ const obj = Reflect . construct (
44
+ instrumentDurableObjectWithSentry ( vi . fn ( ) . mockReturnValue ( { } ) , testClass as any ) ,
45
+ [ ] ,
46
+ ) as any ;
41
47
expect ( obj . asyncMethod ) . toBe ( obj . asyncMethod ) ;
42
48
43
49
const result = obj . asyncMethod ( ) ;
@@ -97,7 +103,10 @@ describe('instrumentDurableObjectWithSentry', () => {
97
103
98
104
webSocketError ( ) { }
99
105
} ;
100
- const instrumented = instrumentDurableObjectWithSentry ( vi . fn ( ) . mockReturnValue ( { instrumentPrototypeMethods : true } ) , testClass as any ) ;
106
+ const instrumented = instrumentDurableObjectWithSentry (
107
+ vi . fn ( ) . mockReturnValue ( { instrumentPrototypeMethods : true } ) ,
108
+ testClass as any ,
109
+ ) ;
101
110
const obj = Reflect . construct ( instrumented , [ ] ) ;
102
111
for ( const method_name of [
103
112
'propertyFunction' ,
0 commit comments