Update grpahql tests

This commit is contained in:
Amine Hilaly 2019-05-16 00:01:43 +02:00 committed by Quentin Gliech
parent 24c3e1f8df
commit af8216cf35
No known key found for this signature in database
GPG Key ID: 22D62B84552719FC

View File

@ -133,8 +133,22 @@ func TestQueries(t *testing.T) {
status status
} }
... on LabelChangeOperation { ... on LabelChangeOperation {
added added {
removed name
color {
R
G
B
}
}
removed {
name
color {
R
G
B
}
}
} }
} }
} }
@ -152,6 +166,13 @@ func TestQueries(t *testing.T) {
DisplayName string `json:"displayName"` DisplayName string `json:"displayName"`
} }
type Label struct {
Name string
Color struct {
R, G, B int
}
}
var resp struct { var resp struct {
DefaultRepository struct { DefaultRepository struct {
AllBugs struct { AllBugs struct {
@ -193,8 +214,8 @@ func TestQueries(t *testing.T) {
Message string Message string
Was string Was string
Status string Status string
Added []string Added []Label
Removed []string Removed []Label
} }
} }
} }