File tree 2 files changed +15
-5
lines changed
2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -279,10 +279,14 @@ class DdRumWrapper implements DdRumType {
279
279
280
280
addViewLoadingTime = ( overwrite : boolean ) : Promise < void > => {
281
281
InternalLog . log (
282
- overwrite ? `Adding and overwriting view loading to RUM View` : `Adding view loading to RUM View` ,
282
+ overwrite
283
+ ? 'Adding and overwriting view loading to RUM View'
284
+ : 'Adding view loading to RUM View' ,
283
285
SdkVerbosity . DEBUG
284
286
) ;
285
- return bufferVoidNativeCall ( ( ) => this . nativeRum . addViewLoadingTime ( overwrite ) ) ;
287
+ return bufferVoidNativeCall ( ( ) =>
288
+ this . nativeRum . addViewLoadingTime ( overwrite )
289
+ ) ;
286
290
} ;
287
291
288
292
stopSession = ( ) : Promise < void > => {
Original file line number Diff line number Diff line change @@ -1627,9 +1627,15 @@ describe('DdRum', () => {
1627
1627
await DdRum . addViewLoadingTime ( true ) ;
1628
1628
await DdRum . addViewLoadingTime ( false ) ;
1629
1629
1630
- expect ( NativeModules . DdRum . addViewLoadingTime ) . toHaveBeenNthCalledWith ( 1 , true ) ;
1631
- expect ( NativeModules . DdRum . addViewLoadingTime ) . toHaveBeenNthCalledWith ( 2 , false ) ;
1632
- expect ( NativeModules . DdRum . addViewLoadingTime ) . toHaveBeenCalledTimes ( 2 ) ;
1630
+ expect (
1631
+ NativeModules . DdRum . addViewLoadingTime
1632
+ ) . toHaveBeenNthCalledWith ( 1 , true ) ;
1633
+ expect (
1634
+ NativeModules . DdRum . addViewLoadingTime
1635
+ ) . toHaveBeenNthCalledWith ( 2 , false ) ;
1636
+ expect (
1637
+ NativeModules . DdRum . addViewLoadingTime
1638
+ ) . toHaveBeenCalledTimes ( 2 ) ;
1633
1639
} ) ;
1634
1640
} ) ;
1635
1641
You can’t perform that action at this time.
0 commit comments