aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/graphql_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-05-22 20:56:37 +0200
committerGitHub <noreply@github.com>2019-05-22 20:56:37 +0200
commit6e20bf0e73862854aea0cd759a880a6b5f473880 (patch)
tree54c7b0f20fa8588f79f7bd9c121630d502b5e1be /graphql/graphql_test.go
parent485ca5900486b7fc3ea71cbcbb39b87272ae09fd (diff)
parentaa6247ce870075922a1309718e8fafee321ef51d (diff)
downloadgit-bug-6e20bf0e73862854aea0cd759a880a6b5f473880.tar.gz
Merge pull request #113 from ludovicm67/patch-colors
bug: add label color directly in the core
Diffstat (limited to 'graphql/graphql_test.go')
-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
}
}
}