Skip to content

Commit

Permalink
'fixing' tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Oliver authored and Nathan Oliver committed Jul 3, 2024
1 parent 9ad1b8f commit acdb5b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/spec/modules/pubxaiAnalyticsAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const readBlobSafariCompat = (blob) => {

describe('pubxai analytics adapter', () => {
beforeEach(() => {
getGlobal().refreshUserIds()
sinon.stub(events, 'getEvents').returns([]);
});

Expand Down Expand Up @@ -591,7 +592,7 @@ describe('pubxai analytics adapter', () => {
cdep: true,
},
userDetail: {
userIdTypes: [],
userIdTypes: Object.keys(getGlobal().getUserIds?.() || {}),
},
consentDetail: {
consentTypes: Object.keys(getGlobal().getConsentMetadata?.() || {}),
Expand Down Expand Up @@ -685,7 +686,7 @@ describe('pubxai analytics adapter', () => {
cdep: true,
},
userDetail: {
userIdTypes: [],
userIdTypes: Object.keys(getGlobal().getUserIds?.() || {}),
},
consentDetail: {
consentTypes: Object.keys(getGlobal().getConsentMetadata?.() || {}),
Expand Down

0 comments on commit acdb5b6

Please sign in to comment.