Skip to content

Commit c2257b8

Browse files
committed
Update specs for resolution order
1 parent 4fb6307 commit c2257b8

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

spec/graphql/authorization_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,9 +767,9 @@ def auth_execute(*args, **kwargs)
767767
assert_equal "RelayObjectEdge", edge["__typename"]
768768

769769
unauthorized_object_paths = [
770-
["unauthorizedConnection", "edges", 0, "node"],
770+
["unauthorizedEdge", "node"],
771771
["unauthorizedConnection", "nodes", 0],
772-
["unauthorizedEdge", "node"]
772+
["unauthorizedConnection", "edges", 0, "node"],
773773
]
774774

775775
assert_equal unauthorized_object_paths, unauthorized_res["errors"].map { |e| e["path"] }

spec/graphql/tracing/platform_trace_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,23 +142,23 @@ def platform_resolve_type_key(type)
142142
"Edible.resolve_type",
143143
"Cheese.authorized",
144144
"Cheese.authorized",
145-
"DynamicFields.authorized",
146-
"D._",
147-
"C.f",
148145
"Edible.resolve_type",
149146
"Cheese.authorized",
150147
"Cheese.authorized",
151-
"DynamicFields.authorized",
152-
"D._",
153-
"C.f",
154148
"Edible.resolve_type",
155149
"Cheese.authorized",
156150
"Cheese.authorized",
151+
"Edible.resolve_type",
152+
"Milk.authorized",
153+
"DynamicFields.authorized",
154+
"D._",
155+
"C.f",
156+
"DynamicFields.authorized",
157+
"D._",
158+
"C.f",
157159
"DynamicFields.authorized",
158160
"D._",
159161
"C.f",
160-
"Edible.resolve_type",
161-
"Milk.authorized",
162162
"DynamicFields.authorized",
163163
"D._",
164164
"E.f",

spec/graphql/tracing/platform_tracing_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,23 +148,23 @@ def platform_trace(platform_key, key, data)
148148
"Edible.resolve_type",
149149
"Cheese.authorized",
150150
"Cheese.authorized",
151-
"DynamicFields.authorized",
152-
"D._",
153-
"C.f",
154151
"Edible.resolve_type",
155152
"Cheese.authorized",
156153
"Cheese.authorized",
157-
"DynamicFields.authorized",
158-
"D._",
159-
"C.f",
160154
"Edible.resolve_type",
161155
"Cheese.authorized",
162156
"Cheese.authorized",
157+
"Edible.resolve_type",
158+
"Milk.authorized",
159+
"DynamicFields.authorized",
160+
"D._",
161+
"C.f",
162+
"DynamicFields.authorized",
163+
"D._",
164+
"C.f",
163165
"DynamicFields.authorized",
164166
"D._",
165167
"C.f",
166-
"Edible.resolve_type",
167-
"Milk.authorized",
168168
"DynamicFields.authorized",
169169
"D._",
170170
"E.f",

0 commit comments

Comments
 (0)