Skip to content

Commit

Permalink
new key and saved it in the demo site.
Browse files Browse the repository at this point in the history
  • Loading branch information
DawoudIO committed Nov 27, 2020
1 parent 47bfaa9 commit 1cb13e5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion cypress.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"video": false,
"env": {
"admin.api.key": "ajGwpy8Pdai22XDUpqjC5Ob04v0eG7EGgb4vz2bD2juT8YDmfM",
"user.api.key": "N3S5Ij3B8wduFHdPRLLEsVLHzGAXXpX1v8ezwVQ1rRUKSTlbXW"
"user.api.key": "cjcPihn8wDwVeRIiNnKfpj0HGgCYbcxaD9SaF6BNJKLtVrnGFr"
}
}
5 changes: 2 additions & 3 deletions cypress/support/api-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ Cypress.Commands.add("makePrivateAPICall", (key, method, url, body, expectedStat
headers: {'content-type': 'application/json', "x-api-key": key},
body: body
}).then((resp) => {
expect(resp.status).to.eq(expectedStatus);
const result = JSON.parse(JSON.stringify(resp.body));
return result;
expect(expectedStatus).to.eq(resp.status);
return JSON.parse(JSON.stringify(resp.body));
})
});

Loading

0 comments on commit 1cb13e5

Please sign in to comment.