Skip to content

Commit

Permalink
Fix test,
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Garanzha committed Jan 23, 2019
1 parent b5b08bb commit 7ae6339
Showing 1 changed file with 26 additions and 30 deletions.
56 changes: 26 additions & 30 deletions tests/dataloader/dataloader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,9 @@ func TestDataLoaderWithKeyFieldSlice(t *testing.T) {
Query: `{
items {
list {
items {
name
categories {
name
categories {
name
}
}
}
}
Expand All @@ -152,32 +150,30 @@ func TestDataLoaderWithKeyFieldSlice(t *testing.T) {
tests.AssertJSON(t, `{
"data": {
"items": {
"list": {
"items": [
{
"name": "item 1",
"categories": [
{
"name": "category 12"
},
{
"name": "category 11"
}
]
},
{
"name": "item 2",
"categories": [
{
"name": "category 11"
},
{
"name": "category 15"
}
]
}
]
}
"list": [
{
"name": "item 1",
"categories": [
{
"name": "category 12"
},
{
"name": "category 11"
}
]
},
{
"name": "item 2",
"categories": [
{
"name": "category 11"
},
{
"name": "category 15"
}
]
}
]
}
}
}`, response)
Expand Down

0 comments on commit 7ae6339

Please sign in to comment.