From f2f75ba4eff4647fb2e7903a06a09ba4cc1c3af8 Mon Sep 17 00:00:00 2001 From: PiX <69745008+pixincreate@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:20:57 +0530 Subject: [PATCH] chore: lints --- cypress-tests-v2/cypress/support/commands.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/cypress-tests-v2/cypress/support/commands.js b/cypress-tests-v2/cypress/support/commands.js index 516228a84174..adb31c98bc40 100644 --- a/cypress-tests-v2/cypress/support/commands.js +++ b/cypress-tests-v2/cypress/support/commands.js @@ -694,9 +694,8 @@ Cypress.Commands.add("apiKeyCreateCall", (apiKeyCreateBody, globalState) => { expect(response.body.description).to.equal(apiKeyCreateBody.description); // API Key assertions are intentionally excluded to avoid being exposed in the logs - expect(response.body) - .to.have.property(key_id_type) - .and.to.include(key_id).and.to.not.be.empty; + expect(response.body).to.have.property(key_id_type).and.to.include(key_id) + .and.to.not.be.empty; globalState.set("apiKeyId", response.body.key_id); globalState.set("apiKey", response.body.api_key); @@ -738,11 +737,11 @@ Cypress.Commands.add("apiKeyRetrieveCall", (globalState) => { if (response.status === 200) { expect(response.body.merchant_id).to.equal(merchant_id); - + if (typeof req_data.customer_acceptance === "object") { + } // API Key assertions are intentionally excluded to avoid being exposed in the logs - expect(response.body) - .to.have.property(key_id_type) - .and.to.include(key_id).and.to.not.be.empty; + expect(response.body).to.have.property(key_id_type).and.to.include(key_id) + .and.to.not.be.empty; if (api_key === undefined || api_key === null) { globalState.set("apiKey", response.body.api_key); @@ -794,9 +793,8 @@ Cypress.Commands.add("apiKeyUpdateCall", (apiKeyUpdateBody, globalState) => { expect(response.body.description).to.equal(apiKeyUpdateBody.description); // API Key assertions are intentionally excluded to avoid being exposed in the logs - expect(response.body) - .to.have.property(key_id_type) - .and.to.include(key_id).and.to.not.be.empty; + expect(response.body).to.have.property(key_id_type).and.to.include(key_id) + .and.to.not.be.empty; if (api_key === undefined || api_key === null) { globalState.set("apiKey", response.body.api_key);