Skip to content

Commit 713d7f4

Browse files
author
Guillermo Tamanaha
committed
Refactor testGroup initialization to use BigInt for consistency in Rokt-Kit and tests
1 parent 1b6e2d5 commit 713d7f4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Rokt-Kit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ var constructor = function () {
410410
this.setUserAttribute = setUserAttribute;
411411
this.onUserIdentified = onUserIdentified;
412412
this.removeUserAttribute = removeUserAttribute;
413-
this.testGroup = [382761173318339093846102813504170n];
413+
this.testGroup = [BigInt('382761173318339093846102813504170')];
414414

415415
/**
416416
* Checks if the Rokt kit is ready to use.

test/src/tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ describe('Rokt Forwarder', () => {
583583
});
584584

585585
it('should create a local launcher if the partner is in the local launcher test group', async () => {
586-
window.mParticle.forwarder.testGroup = [249896952128253326n];
586+
window.mParticle.forwarder.testGroup = [BigInt('249896952128253326')];
587587

588588
await window.mParticle.forwarder.init(
589589
{ accountId: '123456' },

0 commit comments

Comments
 (0)