1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2024-11-24 08:22:42 +02:00

Add test case to check for completeness of roles unmarshal

This commit is contained in:
Matthias Weiss 2018-10-12 12:11:22 +02:00 committed by Wes McNamee
parent c30eba2b69
commit a9350ed566

View File

@ -77,6 +77,9 @@ func TestProjectService_Get(t *testing.T) {
if err != nil {
t.Errorf("Error given: %s", err)
}
if len(projects.Roles) != 9 {
t.Errorf("Expected 9 roles but got %d", len(projects.Roles))
}
}
func TestProjectService_Get_NoProject(t *testing.T) {