Skip to content

Commit 1a97b6f

Browse files
committed
update comments
1 parent 5876e98 commit 1a97b6f

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

src/server/signin-gate/libPure.test.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ describe('mvtIdIsInTheNaturalAuxiaShareOfAudience', () => {
322322
expect(mvtIdIsAuxiaAudienceShare(350001)).toBe(false);
323323
});
324324

325-
describe('decideGateTypeFromGetTreatmentsRequestPayload', () => {
325+
describe('getTreatmentsRequestPayloadToGateType', () => {
326326
it('test shouldServeDismissible and showDefaultGate:mandatory interacting together', () => {
327327
const payload: GetTreatmentsRequestPayload = {
328328
browserId: 'sample',
@@ -416,7 +416,7 @@ describe('decideGateTypeFromGetTreatmentsRequestPayload', () => {
416416
});
417417

418418
it('Ireland, Guardian share, consented, ', () => {
419-
// [02]
419+
// [02] (copy from logic.md)
420420
//
421421
// prerequisites:
422422
// - World without Ireland
@@ -522,7 +522,14 @@ describe('decideGateTypeFromGetTreatmentsRequestPayload', () => {
522522
});
523523

524524
it('Ireland, un-consented, Guardian share', () => {
525-
// [08]
525+
// [08] (copy from logic.md)
526+
//
527+
// prerequisites:
528+
// - Ireland
529+
// - Is Guardian share of the audience
530+
// - user has consented
531+
//
532+
// effects:
526533
// - No Auxia notification
527534
// - Guardian drives the gate:
528535
// - No gate display the first 3 page views

src/server/signin-gate/libPure.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ export const getTreatmentsRequestPayloadToGateType = (
484484
gtrpIsAuxiaAudienceShare(payload) &&
485485
gtrpUserHasConsented(payload)
486486
) {
487-
// [07]
487+
// [07] (copy from logic.md)
488488
//
489489
// prerequisites:
490490
// - Ireland
@@ -501,7 +501,7 @@ export const getTreatmentsRequestPayloadToGateType = (
501501
gtrpIsAuxiaAudienceShare(payload) &&
502502
!gtrpUserHasConsented(payload)
503503
) {
504-
// [05]
504+
// [05] (copy from logic.md)
505505
//
506506
// prerequisites:
507507
// - Ireland
@@ -527,7 +527,7 @@ export const getTreatmentsRequestPayloadToGateType = (
527527
gtrpIsGuardianAudienceShare(payload) &&
528528
gtrpUserHasConsented(payload)
529529
) {
530-
// [08]
530+
// [08] (copy from logic.md)
531531
//
532532
// prerequisites:
533533
// - Ireland
@@ -555,7 +555,7 @@ export const getTreatmentsRequestPayloadToGateType = (
555555
gtrpIsGuardianAudienceShare(payload) &&
556556
!gtrpUserHasConsented(payload)
557557
) {
558-
// [06]
558+
// [06] (copy from logic.md)
559559
//
560560
// prerequisites:
561561
// - Ireland
@@ -584,7 +584,7 @@ export const getTreatmentsRequestPayloadToGateType = (
584584
gtrpIsAuxiaAudienceShare(payload) &&
585585
gtrpUserHasConsented(payload)
586586
) {
587-
// [03]
587+
// [03] (copy from logic.md)
588588
//
589589
// prerequisites:
590590
// - World without Ireland
@@ -601,7 +601,7 @@ export const getTreatmentsRequestPayloadToGateType = (
601601
gtrpIsAuxiaAudienceShare(payload) &&
602602
!gtrpUserHasConsented(payload)
603603
) {
604-
// [01]
604+
// [01] (copy from logic.md)
605605
//
606606
// prerequisites:
607607
// - World without Ireland
@@ -629,7 +629,7 @@ export const getTreatmentsRequestPayloadToGateType = (
629629
gtrpIsGuardianAudienceShare(payload) &&
630630
gtrpUserHasConsented(payload)
631631
) {
632-
// [02]
632+
// [02] (copy from logic.md)
633633
//
634634
// prerequisites:
635635
// - World without Ireland
@@ -657,7 +657,7 @@ export const getTreatmentsRequestPayloadToGateType = (
657657
gtrpIsGuardianAudienceShare(payload) &&
658658
!gtrpUserHasConsented(payload)
659659
) {
660-
// [04]
660+
// [04] (copy from logic.md)
661661
//
662662
// prerequisites:
663663
// - World without Ireland

0 commit comments

Comments
 (0)