Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit 20f6b96

Browse files
committed
extend test case
1 parent 60caf48 commit 20f6b96

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

test/local/union.result

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
RESULT
2+
---
3+
hero_collection:
4+
- hero_type: human
5+
hero_connection:
6+
name: Luke
7+
hero_id: hero_id_1
8+
...
9+
10+
RESULT
11+
---
12+
hero_collection:
13+
- hero_type: starship
14+
hero_connection:
15+
model: Falcon-42
16+
hero_id: hero_id_2
17+
...
18+

test/testdata/union_testdata.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,13 @@ function union_testdata.run_queries(gql_wrapper)
283283
('RESULT\n%s'):format(yaml.encode(result)))
284284
end)
285285

286-
--utils.show_trace(function()
287-
-- local variables_2 = {hero_id = 'hero_id_2'}
288-
-- local gql_query_2 = gql_wrapper:compile(query)
289-
-- local result = gql_query_2:execute(variables_2)
290-
-- results = results .. print_and_return(
291-
-- ('RESULT\n%s'):format(yaml.encode(result)))
292-
--end)
286+
utils.show_trace(function()
287+
local variables_2 = {hero_id = 'hero_id_2'}
288+
local gql_query_2 = gql_wrapper:compile(query)
289+
local result = gql_query_2:execute(variables_2)
290+
results = results .. print_and_return(
291+
('RESULT\n%s'):format(yaml.encode(result)))
292+
end)
293293

294294
return results
295295
end

0 commit comments

Comments
 (0)