Skip to content

Commit f0d3c22

Browse files
revert: more auto-format & clean ups (making it dirty again :-)
1 parent 295394a commit f0d3c22

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"name": "Javascript SDK",
33
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-18-bookworm",
4+
45
"postCreateCommand": "cd /workspaces/javascript-sdk && npm install -g npm && npm install",
6+
57
"customizations": {
68
"vscode": {
79
"extensions": [

lib/core/odp/odp_manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export abstract class OdpManager implements IOdpManager {
220220
/**
221221
* Identifies a user via the ODP Event Manager
222222
* @param {string} userId (Optional) Custom unique identifier of a target user.
223-
* @param {string} vuid (Optional) Secondary unique identifier of a target user, used by client SDKs.
223+
* @param {string} vuid (Optional) Secondary unique identifier of a target user, primarily used by client SDKs.
224224
* @returns
225225
*/
226226
identifyUser(userId?: string, vuid?: string): void {

lib/index.browser.tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ describe('javascript-sdk (Browser)', function() {
128128
logger: silentLogger,
129129
});
130130
// Invalid datafile causes onReady Promise rejection - catch this error
131-
optlyInstance.onReady().catch(function() { });
131+
optlyInstance.onReady().catch(function() {});
132132

133133
sinon.assert.calledOnce(LocalStoragePendingEventsDispatcher.prototype.sendPendingEvents);
134134
});

lib/index.browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ const createInstance = function(config: Config): Client | null {
182182
}
183183
};
184184

185-
const __internalResetRetryState = function (): void {
185+
const __internalResetRetryState = function(): void {
186186
hasRetriedEvents = false;
187187
};
188188

lib/plugins/odp_manager/index.browser.ts

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

110110
let eventManager: IOdpEventManager;
111-
111+
112112
if (odpOptions?.eventManager) {
113113
eventManager = odpOptions.eventManager;
114114
} else {

tests/odpManager.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ describe('OdpManager', () => {
138138
it('should call initialzeVuid on construction if vuid is enabled', () => {
139139
const vuidInitializer = jest.fn();
140140

141-
const odpManager =testOdpManager({
141+
const odpManager = testOdpManager({
142142
segmentManager,
143143
eventManager,
144144
logger,
@@ -214,7 +214,7 @@ describe('OdpManager', () => {
214214

215215
const odpIntegrationConfig: OdpNotIntegratedConfig = { integrated: false };
216216
odpManager.updateSettings(odpIntegrationConfig);
217-
217+
218218
await wait(500);
219219
expect(odpManager.isReady()).toBe(false);
220220

@@ -268,7 +268,7 @@ 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 () => {
@@ -280,7 +280,7 @@ describe('OdpManager', () => {
280280
odpConfig: new OdpConfig(keyA, hostA, pixelA, segmentsA)
281281
};
282282

283-
testOdpManager({
283+
const odpManager = testOdpManager({
284284
odpIntegrationConfig,
285285
segmentManager,
286286
eventManager,
@@ -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)