Skip to content

Commit cd9c1e4

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 4d80d93 commit cd9c1e4

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
@@ -36,6 +36,9 @@ func Test_GetIssue(t *testing.T) {
3636
Body: github.Ptr("This is a test issue"),
3737
State: github.Ptr("open"),
3838
HTMLURL: github.Ptr("https://github.com/owner/repo/issues/42"),
39+
User: &github.User{
40+
Login: github.Ptr("testuser"),
41+
},
3942
}
4043

4144
tests := []struct {

0 commit comments

Comments
 (0)