Skip to content

Commit

Permalink
chore: lints
Browse files Browse the repository at this point in the history
  • Loading branch information
pixincreate committed Nov 6, 2024
1 parent 5eed97e commit f2f75ba
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions cypress-tests-v2/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f2f75ba

Please sign in to comment.