Skip to content

Commit

Permalink
test: fix some mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgeLNJunior committed Mar 4, 2024
1 parent 8c2e96e commit 7ddadc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/action.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@ describe('GitHub deployment', () => {
jest
.spyOn(RenderService.prototype, 'getServiceUrl')
.mockResolvedValueOnce('url')
jest
.spyOn(GitHubService.prototype, 'createDeploymentStatus')
.mockResolvedValueOnce()
const spy = jest
.spyOn(GitHubService.prototype, 'createDeployment')
.mockResolvedValueOnce(1)
Expand Down Expand Up @@ -459,7 +462,7 @@ describe('GitHub deployment', () => {
.mockResolvedValueOnce(deploymentID)
const spy = jest
.spyOn(GitHubService.prototype, 'createDeploymentStatus')
.mockResolvedValueOnce()
.mockResolvedValue()

await new Action().run()

Expand Down

0 comments on commit 7ddadc8

Please sign in to comment.