Skip to content

Commit 8f10947

Browse files
committed
chore: lints
1 parent 5434a43 commit 8f10947

34 files changed

+785
-794
lines changed

cypress-tests/cypress.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const reportName = process.env.REPORT_NAME || `${connectorId}_report`;
1111
export default defineConfig({
1212
e2e: {
1313
setupNodeEvents(on) {
14-
1514
on("task", {
1615
setGlobalState: (val) => {
1716
return (globalState = val || {});

cypress-tests/cypress/e2e/PaymentTest/00005-ThreeDSAutoCapture.cy.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as fixtures from "../../fixtures/imports";
2-
import { validateConfig } from "../../utils/featureFlags";
32
import State from "../../utils/State";
43
import getConnectorDetails, * as utils from "../PaymentUtils/Utils";
54

@@ -25,7 +24,7 @@ describe("Card - ThreeDS payment flow test", () => {
2524
});
2625

2726
it("create-payment-call-test", () => {
28-
let data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
27+
const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
2928
"PaymentIntent"
3029
];
3130

@@ -45,7 +44,7 @@ describe("Card - ThreeDS payment flow test", () => {
4544
});
4645

4746
it("Confirm 3DS", () => {
48-
let data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
47+
const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
4948
"3DSAutoCapture"
5049
];
5150

@@ -55,7 +54,7 @@ describe("Card - ThreeDS payment flow test", () => {
5554
});
5655

5756
it("Handle redirection", () => {
58-
let expected_redirection = fixtures.confirmBody["return_url"];
57+
const expected_redirection = fixtures.confirmBody["return_url"];
5958
cy.handleRedirection(globalState, expected_redirection);
6059
});
6160
});

cypress-tests/cypress/e2e/PaymentTest/00006-NoThreeDSManualCapture.cy.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
2626
});
2727

2828
it("create-payment-call-test", () => {
29-
let data = getConnectorDetails(globalState.get("connectorId"))[
29+
const data = getConnectorDetails(globalState.get("connectorId"))[
3030
"card_pm"
3131
]["PaymentIntent"];
3232

@@ -47,7 +47,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
4747
});
4848

4949
it("confirm-call-test", () => {
50-
let data = getConnectorDetails(globalState.get("connectorId"))[
50+
const data = getConnectorDetails(globalState.get("connectorId"))[
5151
"card_pm"
5252
]["No3DSManualCapture"];
5353

@@ -58,15 +58,15 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
5858
});
5959

6060
it("retrieve-payment-call-test", () => {
61-
let data = getConnectorDetails(globalState.get("connectorId"))[
61+
const data = getConnectorDetails(globalState.get("connectorId"))[
6262
"card_pm"
6363
]["No3DSManualCapture"];
6464

6565
cy.retrievePaymentCallTest(globalState, data);
6666
});
6767

6868
it("capture-call-test", () => {
69-
let data = getConnectorDetails(globalState.get("connectorId"))[
69+
const data = getConnectorDetails(globalState.get("connectorId"))[
7070
"card_pm"
7171
]["Capture"];
7272

@@ -77,7 +77,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
7777
});
7878

7979
it("retrieve-payment-call-test", () => {
80-
let data = getConnectorDetails(globalState.get("connectorId"))[
80+
const data = getConnectorDetails(globalState.get("connectorId"))[
8181
"card_pm"
8282
]["Capture"];
8383

@@ -95,7 +95,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
9595
});
9696

9797
it("create+confirm-payment-call-test", () => {
98-
let data = getConnectorDetails(globalState.get("connectorId"))[
98+
const data = getConnectorDetails(globalState.get("connectorId"))[
9999
"card_pm"
100100
]["No3DSManualCapture"];
101101

@@ -112,15 +112,15 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
112112
});
113113

114114
it("retrieve-payment-call-test", () => {
115-
let data = getConnectorDetails(globalState.get("connectorId"))[
115+
const data = getConnectorDetails(globalState.get("connectorId"))[
116116
"card_pm"
117117
]["No3DSManualCapture"];
118118

119119
cy.retrievePaymentCallTest(globalState, data);
120120
});
121121

122122
it("capture-call-test", () => {
123-
let data = getConnectorDetails(globalState.get("connectorId"))[
123+
const data = getConnectorDetails(globalState.get("connectorId"))[
124124
"card_pm"
125125
]["Capture"];
126126

@@ -131,7 +131,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
131131
});
132132

133133
it("retrieve-payment-call-test", () => {
134-
let data = getConnectorDetails(globalState.get("connectorId"))[
134+
const data = getConnectorDetails(globalState.get("connectorId"))[
135135
"card_pm"
136136
]["Capture"];
137137

@@ -153,7 +153,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
153153
});
154154

155155
it("create-payment-call-test", () => {
156-
let data = getConnectorDetails(globalState.get("connectorId"))[
156+
const data = getConnectorDetails(globalState.get("connectorId"))[
157157
"card_pm"
158158
]["PaymentIntent"];
159159

@@ -174,7 +174,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
174174
});
175175

176176
it("confirm-call-test", () => {
177-
let data = getConnectorDetails(globalState.get("connectorId"))[
177+
const data = getConnectorDetails(globalState.get("connectorId"))[
178178
"card_pm"
179179
]["No3DSManualCapture"];
180180

@@ -185,15 +185,15 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
185185
});
186186

187187
it("retrieve-payment-call-test", () => {
188-
let data = getConnectorDetails(globalState.get("connectorId"))[
188+
const data = getConnectorDetails(globalState.get("connectorId"))[
189189
"card_pm"
190190
]["No3DSManualCapture"];
191191

192192
cy.retrievePaymentCallTest(globalState, data);
193193
});
194194

195195
it("capture-call-test", () => {
196-
let data = getConnectorDetails(globalState.get("connectorId"))[
196+
const data = getConnectorDetails(globalState.get("connectorId"))[
197197
"card_pm"
198198
]["PartialCapture"];
199199

@@ -204,7 +204,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
204204
});
205205

206206
it("retrieve-payment-call-test", () => {
207-
let data = getConnectorDetails(globalState.get("connectorId"))[
207+
const data = getConnectorDetails(globalState.get("connectorId"))[
208208
"card_pm"
209209
]["PartialCapture"];
210210

@@ -222,7 +222,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
222222
});
223223

224224
it("create+confirm-payment-call-test", () => {
225-
let data = getConnectorDetails(globalState.get("connectorId"))[
225+
const data = getConnectorDetails(globalState.get("connectorId"))[
226226
"card_pm"
227227
]["No3DSManualCapture"];
228228

@@ -239,15 +239,15 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
239239
});
240240

241241
it("retrieve-payment-call-test", () => {
242-
let data = getConnectorDetails(globalState.get("connectorId"))[
242+
const data = getConnectorDetails(globalState.get("connectorId"))[
243243
"card_pm"
244244
]["No3DSManualCapture"];
245245

246246
cy.retrievePaymentCallTest(globalState, data);
247247
});
248248

249249
it("capture-call-test", () => {
250-
let data = getConnectorDetails(globalState.get("connectorId"))[
250+
const data = getConnectorDetails(globalState.get("connectorId"))[
251251
"card_pm"
252252
]["PartialCapture"];
253253

@@ -258,7 +258,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
258258
});
259259

260260
it("retrieve-payment-call-test", () => {
261-
let data = getConnectorDetails(globalState.get("connectorId"))[
261+
const data = getConnectorDetails(globalState.get("connectorId"))[
262262
"card_pm"
263263
]["PartialCapture"];
264264

cypress-tests/cypress/e2e/PaymentTest/00007-VoidPayment.cy.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
2525
});
2626

2727
it("create-payment-call-test", () => {
28-
let data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
29-
"PaymentIntent"
30-
];
28+
const data = getConnectorDetails(globalState.get("connectorId"))[
29+
"card_pm"
30+
]["PaymentIntent"];
3131

3232
cy.createPaymentIntentTest(
3333
fixtures.createPaymentBody,
@@ -46,9 +46,9 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
4646
});
4747

4848
it("confirm-call-test", () => {
49-
let data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
50-
"No3DSManualCapture"
51-
];
49+
const data = getConnectorDetails(globalState.get("connectorId"))[
50+
"card_pm"
51+
]["No3DSManualCapture"];
5252

5353
cy.confirmCallTest(fixtures.confirmBody, data, true, globalState);
5454

@@ -57,9 +57,9 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
5757
});
5858

5959
it("void-call-test", () => {
60-
let data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
61-
"VoidAfterConfirm"
62-
];
60+
const data = getConnectorDetails(globalState.get("connectorId"))[
61+
"card_pm"
62+
]["VoidAfterConfirm"];
6363

6464
cy.voidCallTest(fixtures.voidBody, data, globalState);
6565

@@ -80,7 +80,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
8080
});
8181

8282
it("create-payment-call-test", () => {
83-
let data = getConnectorDetails(globalState.get("connectorId"))[
83+
const data = getConnectorDetails(globalState.get("connectorId"))[
8484
"card_pm"
8585
]["PaymentIntent"];
8686

@@ -101,7 +101,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
101101
});
102102

103103
it("void-call-test", () => {
104-
let data = getConnectorDetails(globalState.get("connectorId"))[
104+
const data = getConnectorDetails(globalState.get("connectorId"))[
105105
"card_pm"
106106
]["Void"];
107107

@@ -123,9 +123,9 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
123123
});
124124

125125
it("create-payment-call-test", () => {
126-
let data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
127-
"PaymentIntent"
128-
];
126+
const data = getConnectorDetails(globalState.get("connectorId"))[
127+
"card_pm"
128+
]["PaymentIntent"];
129129

130130
cy.createPaymentIntentTest(
131131
fixtures.createPaymentBody,
@@ -144,9 +144,9 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
144144
});
145145

146146
it("confirm-call-test", () => {
147-
let data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
148-
"No3DSManualCapture"
149-
];
147+
const data = getConnectorDetails(globalState.get("connectorId"))[
148+
"card_pm"
149+
]["No3DSManualCapture"];
150150

151151
cy.confirmCallTest(fixtures.confirmBody, data, false, globalState);
152152

@@ -155,9 +155,9 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
155155
});
156156

157157
it("void-call-test", () => {
158-
let data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
159-
"VoidAfterConfirm"
160-
];
158+
const data = getConnectorDetails(globalState.get("connectorId"))[
159+
"card_pm"
160+
]["VoidAfterConfirm"];
161161

162162
cy.voidCallTest(fixtures.voidBody, data, globalState);
163163

cypress-tests/cypress/e2e/PaymentTest/00008-SyncPayment.cy.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe("Card - Sync payment flow test", () => {
2323
cy.task("setGlobalState", globalState.data);
2424
});
2525
it("create-payment-call-test", () => {
26-
let data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
26+
const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
2727
"PaymentIntent"
2828
];
2929

@@ -43,7 +43,7 @@ describe("Card - Sync payment flow test", () => {
4343
});
4444

4545
it("confirm-call-test", () => {
46-
let data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
46+
const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
4747
"No3DSAutoCapture"
4848
];
4949

@@ -53,9 +53,9 @@ describe("Card - Sync payment flow test", () => {
5353
});
5454

5555
it("retrieve-payment-call-test", () => {
56-
let data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
56+
const data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
5757
"No3DSAutoCapture"
5858
];
59-
cy.retrievePaymentCallTest(globalState, dta);
59+
cy.retrievePaymentCallTest(globalState, data);
6060
});
6161
});

0 commit comments

Comments
 (0)