Fix TestAPIGetAll
This commit is contained in:
parent
8b0bc32902
commit
8f03691e0a
1 changed files with 4 additions and 3 deletions
|
@ -152,9 +152,10 @@ func TestAPIGetAll(t *testing.T) {
|
||||||
var apiOrgList []*api.Organization
|
var apiOrgList []*api.Organization
|
||||||
DecodeJSON(t, resp, &apiOrgList)
|
DecodeJSON(t, resp, &apiOrgList)
|
||||||
|
|
||||||
assert.Len(t, apiOrgList, 7)
|
// accessing with a token will return all orgs
|
||||||
assert.Equal(t, "org25", apiOrgList[0].FullName)
|
assert.Len(t, apiOrgList, 9)
|
||||||
assert.Equal(t, "public", apiOrgList[0].Visibility)
|
assert.Equal(t, "org25", apiOrgList[1].FullName)
|
||||||
|
assert.Equal(t, "public", apiOrgList[1].Visibility)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAPIOrgSearchEmptyTeam(t *testing.T) {
|
func TestAPIOrgSearchEmptyTeam(t *testing.T) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue