Skip to content

Commit f3e25fe

Browse files
gtamanahaalexs-mparticle
authored andcommitted
fix(reportingLogger): Update default account ID to '0' and adjust corresponding test expectation
1 parent f7db566 commit f3e25fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/logging/reportingLogger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class ReportingLogger implements IReportingLogger {
1313
private readonly reporter: string = 'mp-wsdk';
1414
private readonly integration: string = 'mp-wsdk';
1515
private readonly rateLimiter: IRateLimiter;
16-
private readonly DEFAULT_ACCOUNT_ID: string = 'no-account-id-set';
16+
private readonly DEFAULT_ACCOUNT_ID: string = '0';
1717
private readonly DEFAULT_USER_AGENT: string = 'no-user-agent-set';
1818
private readonly DEFAULT_URL: string = 'no-url-set';
1919

test/jest/reportingLogger.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe('ReportingLogger', () => {
9999
logger.error('msg');
100100
expect(mockFetch).toHaveBeenCalled();
101101
const fetchCall = mockFetch.mock.calls[0];
102-
expect(fetchCall[1].headers['rokt-account-id']).toBe('no-account-id-set');
102+
expect(fetchCall[1].headers['rokt-account-id']).toBe('0');
103103
});
104104

105105
it('uses default user agent when user agent is empty', () => {

0 commit comments

Comments
 (0)