Skip to content

Commit f8775bc

Browse files
Merge branch 'feature/SDKE-106-rta-attributes' of github.com:mparticle-integrations/mparticle-javascript-integration-rokt into feature/SDKE-106-rta-attributes
2 parents 76b9bd7 + 58f6896 commit f8775bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/src/tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,7 @@ describe('Rokt Forwarder', () => {
18531853
});
18541854

18551855
describe('#parseSettingsString', () => {
1856-
it('should parse a settings string', () => {
1856+
it('should parse null values in a settings string appropriately', () => {
18571857
const settingsString =
18581858
'[{"jsmap":null,"map":"f.name","maptype":"UserAttributeClass.Name","value":"firstname"},{"jsmap":null,"map":"last_name","maptype":"UserAttributeClass.Name","value":"lastname"}]';
18591859

@@ -1875,7 +1875,7 @@ describe('Rokt Forwarder', () => {
18751875
]);
18761876
});
18771877

1878-
it('should parse a settings string with a stringified number value correctly', () => {
1878+
it('should convert jmap and map number values to stringified numbers when parsed', () => {
18791879
const settingsString =
18801880
'[{"jsmap":"-1484452948","map":"-5208850776883573773","maptype":"EventClass.Id","value":"abc"},{"jsmap":"1838502119","map":"1324617889422969328","maptype":"EventClass.Id","value":"bcd"},{"jsmap":"-355458063","map":"5878452521714063084","maptype":"EventClass.Id","value":"card_viewed_test"}]';
18811881

0 commit comments

Comments
 (0)