Skip to content

Commit

Permalink
refactor: regen mocks, use existing VerifyWasCalled(Never())
Browse files Browse the repository at this point in the history
  • Loading branch information
finnag authored and GenPage committed Dec 12, 2023
1 parent 379efd2 commit f1ccc98
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion server/events/command_runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ func TestRunUnlockCommandDoesntRetrieveLabelsIfDisableUnlockLabelNotSet(t *testi

ch.RunCommentCommand(testdata.GithubRepo, &testdata.GithubRepo, nil, testdata.User, testdata.Pull.Num, &events.CommentCommand{Name: command.Unlock})

vcsClient.VerifyWasNotCalled().GetPullLabels(testdata.GithubRepo, modelPull)
vcsClient.VerifyWasCalled(Never()).GetPullLabels(testdata.GithubRepo, modelPull)
}

func TestRunAutoplanCommand_DeletePlans(t *testing.T) {
Expand Down
7 changes: 0 additions & 7 deletions server/events/vcs/mocks/mock_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f1ccc98

Please sign in to comment.