Skip to content

Commit

Permalink
Using tcfv2 in unknown frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsola-guardian committed Jan 23, 2024
1 parent 40bf325 commit d7ca30d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const stub = (framework: Framework): void => {
stub_uspapi_ccpa();
break;
default:
stub_tcfv2();
break;
}
};

1 comment on commit d7ca30d

@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

❌ An unexpected error occurred. For more details, check console

Error: The process '/usr/local/bin/yarn' failed with exit code 1
St.
Category Percentage Covered / Total
🟢 Statements 92.42% 256/277
🟢 Branches 82.91% 97/117
🟢 Functions 90% 63/70
🟢 Lines 92.19% 248/269

Test suite run failed

Failed tests: 1/328. Failed suites: 1/16.
  ● Sourcepoint unified › should initialize window._sp_ with the correct config if it doesn't exist

    expect(received).toBeDefined()

    Received: undefined

      41 | 				).toEqual(framework);
      42 | 				expect(window._sp_.config.ccpa).toBeUndefined();
    > 43 | 				expect(window.__tcfapi).toBeDefined();
         | 				                        ^
      44 | 				expect(window.__uspapi).toBeUndefined();
      45 | 				expect(window.__gpp).toBeUndefined();
      46 | 			} else if (framework == 'ccpa') {

      at toBeDefined (src/sourcepoint.test.js:43:29)

Report generated by 🧪jest coverage report action from d7ca30d

Please sign in to comment.