Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sj14 committed May 12, 2019
1 parent ce8314e commit fc5b26c
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 52 deletions.
96 changes: 48 additions & 48 deletions hoster/gitlab/client_moq_test.go

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

8 changes: 4 additions & 4 deletions hoster/gitlab/gitlab_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ import (

func TestAggregateReminder(t *testing.T) {
mockedClient := &clientMock{
projectInfoFunc: func(id int) gitlab.Project {
projectInfoFunc: func(repo interface{}) gitlab.Project {
return gitlab.Project{Name: "mocked project"}
},
openMergeRequestsFunc: func(projectID int) []*gitlab.MergeRequest {
openMergeRequestsFunc: func(repo interface{}) []*gitlab.MergeRequest {
return []*gitlab.MergeRequest{
{Title: "MR0"},
}
},
loadEmojisFunc: func(projectID int, mr *gitlab.MergeRequest) []*gitlab.AwardEmoji {
loadEmojisFunc: func(repo interface{}, mr *gitlab.MergeRequest) []*gitlab.AwardEmoji {
return []*gitlab.AwardEmoji{
{Name: ":thumbsup:"},
}
},
loadDiscussionsFunc: func(projectID int, mr *gitlab.MergeRequest) []*gitlab.Discussion {
loadDiscussionsFunc: func(repo interface{}, mr *gitlab.MergeRequest) []*gitlab.Discussion {
return []*gitlab.Discussion{
{ID: "id0", Notes: []*gitlab.Note{{Resolved: false, Resolvable: true}}},
}
Expand Down

0 comments on commit fc5b26c

Please sign in to comment.