Skip to content

Commit

Permalink
add coverage to attributes.js unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
vgoodric committed Aug 27, 2024
1 parent 177db35 commit 1722063
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/martech/attributes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,13 @@ describe('Analytics', async () => {
}, 20);
expect(processedString).to.equal('Buy now');
});
it('should process tracking labels with foreign locale and MEP placeholder', () => {
const translatedString = 'Comprar ahora';
const processedString = processTrackingLabels(translatedString, {
locale: { ietf: 'es-ES' },
analyticLocalization: { 'Comprar ahora': 'Buy now' },
mep: { analyticLocalization: { 'Comprar ahora': 'Buy right now' } },
}, 20);
expect(processedString).to.equal('Buy right now');
});
});

0 comments on commit 1722063

Please sign in to comment.