Skip to content

Commit 7457d3b

Browse files
authored
[Fusion] Updated theory data in RequireInvalidSyntaxRuleTests (#8209)
1 parent cd1939c commit 7457d3b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/HotChocolate/Fusion-vnext/test/Fusion.Composition.Tests/SourceSchemaValidationRules/RequireInvalidSyntaxRuleTests.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,19 @@ public static TheoryData<string[], string[]> InvalidExamplesData()
7777
{
7878
[
7979
"""
80-
type Book {
80+
type User @key(fields: "id") {
8181
id: ID!
82-
title(lang: String! @require(field: "author { name ")): String
82+
profile(name: String! @require(field: "{ name ")): Profile
8383
}
8484
85-
type Author {
85+
type Profile {
86+
id: ID!
8687
name: String
8788
}
8889
"""
8990
],
9091
[
91-
"The @require directive on argument 'Book.title(lang:)' in schema 'A' " +
92+
"The @require directive on argument 'User.profile(name:)' in schema 'A' " +
9293
"contains invalid syntax in the 'field' argument."
9394
]
9495
}

0 commit comments

Comments
 (0)