aboutsummaryrefslogtreecommitdiffstats
path: root/graphql
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-05-16 00:01:43 +0200
committerQuentin Gliech <quentingliech@gmail.com>2019-05-22 20:22:36 +0200
commitaf8216cf35855c39787c920316308a313ceea2c2 (patch)
tree8fad4eec51bdd3ee66652ae70c1e441ee33697bb /graphql
parent24c3e1f8dfc4d5cc23c51f9e7a9efe9bc2c88731 (diff)
downloadgit-bug-af8216cf35855c39787c920316308a313ceea2c2.tar.gz
Update grpahql tests
Diffstat (limited to 'graphql')
-rw-r--r--graphql/graphql_test.go29
1 files changed, 25 insertions, 4 deletions
diff --git a/graphql/graphql_test.go b/graphql/graphql_test.go
index 5abdd30c..f8a3c059 100644
--- a/graphql/graphql_test.go
+++ b/graphql/graphql_test.go
@@ -133,8 +133,22 @@ func TestQueries(t *testing.T) {
status
}
... on LabelChangeOperation {
- added
- removed
+ added {
+ name
+ color {
+ R
+ G
+ B
+ }
+ }
+ removed {
+ name
+ color {
+ R
+ G
+ B
+ }
+ }
}
}
}
@@ -152,6 +166,13 @@ func TestQueries(t *testing.T) {
DisplayName string `json:"displayName"`
}
+ type Label struct {
+ Name string
+ Color struct {
+ R, G, B int
+ }
+ }
+
var resp struct {
DefaultRepository struct {
AllBugs struct {
@@ -193,8 +214,8 @@ func TestQueries(t *testing.T) {
Message string
Was string
Status string
- Added []string
- Removed []string
+ Added []Label
+ Removed []Label
}
}
}