Skip to content

Commit

Permalink
Updated test by adding signalStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsola-guardian committed Jun 5, 2024
1 parent c95fa3b commit 9c41521
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ const canTargetTCFv2 = (canTarget: boolean): ConsentState => ({
const canTargetCCPA = (canTarget: boolean): ConsentState => ({
ccpa: {
doNotSell: !canTarget,
signalStatus: 'ready'
},
canTarget,
framework: 'ccpa',
framework: 'usnat',
});

const canTargetAUS = (canTarget: boolean): ConsentState => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ describe('hasRequiredConsents', () => {
mockOnConsentChangeResult = {
ccpa: {
doNotSell: false,
signalStatus: 'ready'
},
canTarget: true,
framework: 'ccpa',
framework: 'usnat',
};

await expect(hasRequiredConsents()).resolves.toBe(true);
Expand All @@ -82,6 +83,7 @@ describe('hasRequiredConsents', () => {
mockOnConsentChangeResult = {
ccpa: {
doNotSell: true,
signalStatus: 'ready'
},
canTarget: false,
framework: 'ccpa',
Expand Down

0 comments on commit 9c41521

Please sign in to comment.