Skip to content

Commit 2641722

Browse files
committed
Solve linting issues on DdRum.ts and DdRum.test.ts
1 parent 658b740 commit 2641722

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

packages/core/src/rum/DdRum.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,14 @@ class DdRumWrapper implements DdRumType {
279279

280280
addViewLoadingTime = (overwrite: boolean): Promise<void> => {
281281
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',
283285
SdkVerbosity.DEBUG
284286
);
285-
return bufferVoidNativeCall(() => this.nativeRum.addViewLoadingTime(overwrite));
287+
return bufferVoidNativeCall(() =>
288+
this.nativeRum.addViewLoadingTime(overwrite)
289+
);
286290
};
287291

288292
stopSession = (): Promise<void> => {

packages/core/src/rum/__tests__/DdRum.test.ts

+9-3
Original file line numberDiff line numberDiff line change
@@ -1627,9 +1627,15 @@ describe('DdRum', () => {
16271627
await DdRum.addViewLoadingTime(true);
16281628
await DdRum.addViewLoadingTime(false);
16291629

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);
16331639
});
16341640
});
16351641

0 commit comments

Comments
 (0)