Skip to content

Commit

Permalink
log: added verify response
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMath123 committed May 17, 2024
1 parent 4084c5d commit 7088092
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('run function', () => {
data: { state: 'inactive' }
}
)
expect(setOutputMock).toHaveBeenCalledWith('time', expect.any(String))
// expect(setOutputMock).toHaveBeenCalledWith('time', expect.any(String))
})

it('should fail when no deployment is found for the branch', async () => {
Expand Down
4 changes: 3 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ async function changeStatusDeployment(octokit, owner, repo, id) {
state
}
}
)
);

console.log('Change status', reponse);

return response.status === 200
}
Expand Down

0 comments on commit 7088092

Please sign in to comment.