Skip to content

Commit

Permalink
Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
boxblinkracer committed Jun 24, 2022
1 parent eaf89c3 commit 6a40501
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cypress-testrail",
"version": "0.1.1",
"version": "1.0.0",
"description": "Easy and decoupled Cypress TestRail reporter",
"main": "index.js",
"private": false,
Expand Down
16 changes: 9 additions & 7 deletions src/components/TestRail/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ export default class ApiClient {
*/
sendResult(runID, result) {

const postData = [
{
"case_id": result.getCaseId(),
"status_id": result.getStatusId(),
"comment": result.getComment()
}
];
const postData = {
"results": [
{
"case_id": result.getCaseId(),
"status_id": result.getStatusId(),
"comment": result.getComment()
}
]
};

axios(
{
Expand Down

0 comments on commit 6a40501

Please sign in to comment.