Skip to content

Commit

Permalink
Update stub.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsola-guardian committed Jan 10, 2024
1 parent f70ee16 commit 249f80c
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/stub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@ export const stub = (framework: Framework): void => {
// for the framework currently in use. The presence of __tcfapi on the window object signals to GPT
// that it should take precedence over __uspapi
// documentation.sourcepoint.com/implementation/web-implementation/multi-campaign-web-implementation#stub-file
if (framework === 'tcfv2') stub_tcfv2();
else {
stub_ccpa();
stub_gpp_ccpa();
};

switch (framework) {
case 'tcfv2':
stub_tcfv2()
break;
case 'ccpa':
stub_ccpa();
stub_gpp_ccpa();
case 'aus':
stub_ccpa();
default:
break;
}
};

1 comment on commit 249f80c

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 92.57% 249/269
🟢 Branches 83.48% 96/115
🟢 Functions 90% 63/70
🟢 Lines 92.34% 241/261

Test suite run success

328 tests passing in 16 suites.

Report generated by 🧪jest coverage report action from 249f80c

Please sign in to comment.