diff --git a/test/spec/modules/pubxaiAnalyticsAdapter_spec.js b/test/spec/modules/pubxaiAnalyticsAdapter_spec.js index 0cb5fb51796..237a2d32d54 100644 --- a/test/spec/modules/pubxaiAnalyticsAdapter_spec.js +++ b/test/spec/modules/pubxaiAnalyticsAdapter_spec.js @@ -22,6 +22,7 @@ const readBlobSafariCompat = (blob) => { describe('pubxai analytics adapter', () => { beforeEach(() => { + getGlobal().refreshUserIds() sinon.stub(events, 'getEvents').returns([]); }); @@ -591,7 +592,7 @@ describe('pubxai analytics adapter', () => { cdep: true, }, userDetail: { - userIdTypes: [], + userIdTypes: Object.keys(getGlobal().getUserIds?.() || {}), }, consentDetail: { consentTypes: Object.keys(getGlobal().getConsentMetadata?.() || {}), @@ -685,7 +686,7 @@ describe('pubxai analytics adapter', () => { cdep: true, }, userDetail: { - userIdTypes: [], + userIdTypes: Object.keys(getGlobal().getUserIds?.() || {}), }, consentDetail: { consentTypes: Object.keys(getGlobal().getConsentMetadata?.() || {}),