Skip to content

Commit d7bbd24

Browse files
authored
linting (#1434)
* linting * remove outdated todo
1 parent 1a5eb83 commit d7bbd24

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

src/server/signin-gate/libPure.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,7 @@ export const getTreatmentsRequestPayloadToGateType = (
456456
// of the space. Therefore one and only one condition of the below conditions
457457
// should correspond to a given payload.
458458

459-
if (
460-
payload.countryCode === 'IE' &&
461-
userHasConsented(payload)
462-
) {
459+
if (payload.countryCode === 'IE' && userHasConsented(payload)) {
463460
// [07] (copy from logic.md)
464461
//
465462
// prerequisites:
@@ -471,10 +468,7 @@ export const getTreatmentsRequestPayloadToGateType = (
471468
return 'AuxiaAPI';
472469
}
473470

474-
if (
475-
payload.countryCode === 'IE' &&
476-
!userHasConsented(payload)
477-
) {
471+
if (payload.countryCode === 'IE' && !userHasConsented(payload)) {
478472
// [05] (copy from logic.md)
479473
//
480474
// prerequisites:

src/server/signin-gate/libPureTests/getTreatmentsRequestPayloadToGateType/ireland.test.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -149,19 +149,4 @@ describe('getTreatmentsRequestPayloadToGateType (ireland)', () => {
149149
const gateType = getTreatmentsRequestPayloadToGateType(payload, now);
150150
expect(gateType).toStrictEqual('AuxiaAnalyticsThenGuMandatory');
151151
});
152-
153-
// TODO: write the tests for
154-
// [06] (copy from logic.md)
155-
//
156-
// prerequisites:
157-
// - Ireland
158-
// - Is Guardian share of the audience
159-
// - user has NOT consented
160-
//
161-
// effects:
162-
// - Notify Auxia for analytics
163-
// - Guardian drives the gate:
164-
// - No gate for 30 days after a single contribution event (gu_hide_support_messaging; hideSupportMessagingTimestamp)
165-
// - No gate display the first 3 page views
166-
// - 3x dismissal, then mandatory
167152
});

0 commit comments

Comments
 (0)