Skip to content

Commit 339ecfb

Browse files
revert: even more auto-formatting
1 parent f0d3c22 commit 339ecfb

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

lib/optimizely/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,9 @@ export default class Optimizely implements Client {
14331433
return Promise.race([this.readyPromise, timeoutPromise]);
14341434
}
14351435

1436+
//============ decide ============//
1437+
1438+
14361439
/**
14371440
* Creates a context of the user for which decision APIs will be called.
14381441
*

lib/plugins/odp_manager/index.browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class BrowserOdpManager extends OdpManager {
7070
}
7171

7272
let customSegmentRequestHandler;
73-
73+
7474
if (odpOptions?.segmentsRequestHandler) {
7575
customSegmentRequestHandler = odpOptions.segmentsRequestHandler;
7676
} else {

tests/odpManager.spec.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -268,16 +268,16 @@ describe('OdpManager', () => {
268268
await odpManager.onReady();
269269
expect(odpManager.isReady()).toBe(true);
270270
expect(odpManager.getStatus()).toEqual(Status.Stopped);
271-
verify(mockEventManager.start()).never();
271+
verify(mockEventManager.start()).never();
272272
});
273273

274274
it('should pass the integrated odp config given in constructor to eventManger and segmentManager', async () => {
275275
when(mockEventManager.updateSettings(anything())).thenReturn(undefined);
276276
when(mockSegmentManager.updateSettings(anything())).thenReturn(undefined);
277277

278-
const odpIntegrationConfig: OdpIntegratedConfig = {
279-
integrated: true,
280-
odpConfig: new OdpConfig(keyA, hostA, pixelA, segmentsA)
278+
const odpIntegrationConfig: OdpIntegratedConfig = {
279+
integrated: true,
280+
odpConfig: new OdpConfig(keyA, hostA, pixelA, segmentsA)
281281
};
282282

283283
const odpManager = testOdpManager({
@@ -362,9 +362,9 @@ describe('OdpManager', () => {
362362
expect(odpManager.isReady()).toBe(true);
363363
expect(odpManager.getStatus()).toEqual(Status.Running);
364364

365-
const newOdpIntegrationConfig: OdpIntegratedConfig = {
366-
integrated: true,
367-
odpConfig: new OdpConfig(keyB, hostB, pixelB, segmentsB)
365+
const newOdpIntegrationConfig: OdpIntegratedConfig = {
366+
integrated: true,
367+
odpConfig: new OdpConfig(keyB, hostB, pixelB, segmentsB)
368368
};
369369

370370
odpManager.updateSettings(newOdpIntegrationConfig);
@@ -403,8 +403,8 @@ describe('OdpManager', () => {
403403
expect(odpManager.isReady()).toBe(true);
404404
expect(odpManager.getStatus()).toEqual(Status.Running);
405405

406-
const newOdpIntegrationConfig: OdpNotIntegratedConfig = {
407-
integrated: false,
406+
const newOdpIntegrationConfig: OdpNotIntegratedConfig = {
407+
integrated: false,
408408
};
409409

410410
odpManager.updateSettings(newOdpIntegrationConfig);
@@ -428,7 +428,7 @@ describe('OdpManager', () => {
428428
});
429429

430430
await odpManager.onReady();
431-
431+
432432
verify(mockEventManager.registerVuid(anything())).once();
433433
});
434434

@@ -460,7 +460,7 @@ describe('OdpManager', () => {
460460
const [userIdArg2, vuidArg2] = capture(mockEventManager.identifyUser).byCallIndex(1);
461461
expect(userIdArg2).toEqual(userId);
462462
expect(vuidArg2).toEqual(undefined);
463-
463+
464464
odpManager.identifyUser(vuid);
465465
const [userIdArg3, vuidArg3] = capture(mockEventManager.identifyUser).byCallIndex(2);
466466
expect(userIdArg3).toEqual(undefined);

0 commit comments

Comments
 (0)