Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
yp05327 committed Mar 24, 2023
1 parent 085a44e commit da6e7f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/issues/issue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func TestGetUserIssueStats(t *testing.T) {
AssignCount: 1, // 6
CreateCount: 1, // 6
OpenCount: 1, // 6
ClosedCount: 1, // 1
ClosedCount: 0, // issue(id:5) is posted by user2 and user1 is not owner or collaborator of repo(id:1)
},
},
{
Expand All @@ -229,11 +229,11 @@ func TestGetUserIssueStats(t *testing.T) {
IsClosed: true,
},
issues_model.IssueStats{
YourRepositoriesCount: 1, // 6
YourRepositoriesCount: 0, // 6
AssignCount: 0,
CreateCount: 0,
OpenCount: 1, // 6
ClosedCount: 1, // 1
ClosedCount: 0, // issue(id:5) is posted by user2 and user1 is not owner or collaborator of repo(id:1)
},
},
{
Expand Down

0 comments on commit da6e7f8

Please sign in to comment.