Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-peterson committed May 24, 2023
1 parent fe7855f commit a41be84
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions models/organization/org_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,12 @@ func TestGetOrgUsersByOrgID(t *testing.T) {
UID: 4,
IsPublic: false,
}, *orgUsers[1])
assert.Equal(t, organization.OrgUser{
ID: orgUsers[2].ID,
OrgID: 3,
UID: 28,
IsPublic: false,
}, *orgUsers[2])
}

orgUsers, err = organization.GetOrgUsersByOrgID(db.DefaultContext, &organization.FindOrgMembersOpts{
Expand Down

0 comments on commit a41be84

Please sign in to comment.