Skip to content

Commit 55eaeaa

Browse files
test: Fix tests based on schema validation
1 parent 0f5312b commit 55eaeaa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/GraphitiTests/PartialSchemaTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class PartialSchemaTests: XCTestCase {
1111
.description("The id of the character.")
1212
Field("name", at: \.name)
1313
.description("The name of the character.")
14-
Field("friends", at: \.friends)
14+
Field("friends", at: Character.getFriends)
1515
.description(
1616
"The friends of the character, or an empty list if they have none."
1717
)
@@ -199,7 +199,7 @@ class PartialSchemaTests: XCTestCase {
199199
.description("The id of the character.")
200200
Field("name", at: \.name)
201201
.description("The name of the character.")
202-
Field("friends", at: \.friends)
202+
Field("friends", at: Character.getFriends)
203203
.description(
204204
"The friends of the character, or an empty list if they have none."
205205
)

Tests/GraphitiTests/SchemaBuilderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class SchemaBuilderTests: XCTestCase {
6767
.description("The id of the character.")
6868
Field("name", at: \.name)
6969
.description("The name of the character.")
70-
Field("friends", at: \.friends)
70+
Field("friends", at: Character.getFriends)
7171
.description(
7272
"The friends of the character, or an empty list if they have none."
7373
)

0 commit comments

Comments
 (0)