Skip to content

Commit a0e757a

Browse files
committed
Fix Test_GetIssue mock data - add missing User field
The assertion was already checking User.Login but the mock was incomplete
1 parent 9c527bf commit a0e757a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/github/issues_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ func Test_GetIssue(t *testing.T) {
3838
Body: github.Ptr("This is a test issue"),
3939
State: github.Ptr("open"),
4040
HTMLURL: github.Ptr("https://github.com/owner/repo/issues/42"),
41+
User: &github.User{
42+
Login: github.Ptr("testuser"),
43+
},
4144
}
4245

4346
tests := []struct {

0 commit comments

Comments
 (0)