Skip to content

Commit

Permalink
Add missing error-based test for CheckAssignee
Browse files Browse the repository at this point in the history
Add a missing error-based test for CheckAssignee() tests which validates
the control follow when dealing with errors from GitHub in
SetAssignee().
  • Loading branch information
jonathanio committed May 30, 2023
1 parent 1460f99 commit a31dd14
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/action/check_assignee_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ var (
GitHubError: nil,
Pass: true,
},
{
Name: "unassigned-with-error",
User: user,
Assignees: nil,
UserPresent: false,
GitHubError: fmt.Errorf("unknown error"),
Pass: false,
},
}
)

Expand Down

0 comments on commit a31dd14

Please sign in to comment.