We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7568c5 commit e62393bCopy full SHA for e62393b
packages/hub/test/hub.test.ts
@@ -431,4 +431,23 @@ describe('Hub', () => {
431
});
432
433
434
+
435
+ describe('shouldSendDefaultPii()', () => {
436
+ test('return false if sendDefaultPii is not set', () => {
437
+ const testClient = makeClient();
438
+ const hub = new Hub(testClient);
439
+ expect(hub.shouldSendDefaultPii()).toBe(false);
440
+ });
441
442
+ test('return true if sendDefaultPii is set in the client options', () => {
443
444
+ testClient.getOptions = () => {
445
+ return {
446
+ sendDefaultPii: true,
447
+ } as unknown as any;
448
+ };
449
450
+ expect(hub.shouldSendDefaultPii()).toBe(true);
451
452
453
0 commit comments