From acdb5b6c548c3e567449cf3e74bf23bd289c7024 Mon Sep 17 00:00:00 2001 From: Nathan Oliver Date: Wed, 3 Jul 2024 22:22:03 +0100 Subject: [PATCH] 'fixing' tests --- test/spec/modules/pubxaiAnalyticsAdapter_spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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?.() || {}),