Skip to content

Commit 4d2e77c

Browse files
UserID module: fix esp unit test (#8212)
* ESP:Assetion Issue solved
1 parent c8c326f commit 4d2e77c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/spec/modules/userId_spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2705,17 +2705,17 @@ describe('User ID', function () {
27052705
}).catch(done);
27062706
});
27072707

2708-
it('pbjs.getEncryptedEidsForSource should return string if custom function is defined', () => {
2708+
it('pbjs.getEncryptedEidsForSource should return string if custom function is defined', (done) => {
27092709
const getCustomSignal = () => {
27102710
return '{"keywords":["tech","auto"]}';
27112711
}
2712-
const expectedString = '"1||{\"keywords\":[\"tech\",\"auto\"]}"';
2712+
const expectedString = '1||eyJrZXl3b3JkcyI6WyJ0ZWNoIiwiYXV0byJdfQ==';
27132713
const encrypt = false;
27142714
const source = 'pubmatic.com';
27152715
(getGlobal()).getEncryptedEidsForSource(source, encrypt, getCustomSignal).then((result) => {
27162716
expect(result).to.equal(expectedString);
27172717
done();
2718-
});
2718+
}).catch(done);
27192719
});
27202720

27212721
it('pbjs.getUserIdsAsEidBySource', () => {

0 commit comments

Comments
 (0)