mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 17:51:44 +03:00
Update grpahql tests
This commit is contained in:
parent
24c3e1f8df
commit
af8216cf35
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user