Skip to content

Commit 7051036

Browse files
authored
[Fusion] Updated theory data in IsInvalidSyntaxRuleTests (#8212)
1 parent 450c609 commit 7051036

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,11 @@ public static TheoryData<string[]> ValidExamplesData()
5353
{
5454
[
5555
"""
56-
type User @key(fields: "id") {
57-
id: ID!
58-
profile(name: String! @is(field: "name")): Profile
56+
type Query {
57+
personById(id: ID! @is(field: "id")): Person @lookup
5958
}
6059
61-
type Profile {
60+
type Person {
6261
id: ID!
6362
name: String
6463
}
@@ -77,20 +76,19 @@ public static TheoryData<string[], string[]> InvalidExamplesData()
7776
{
7877
[
7978
"""
80-
type User @key(fields: "id") {
81-
id: ID!
82-
profile(name: String! @is(field: "{ name ")): Profile
79+
type Query {
80+
personById(id: ID! @is(field: "{ id ")): Person @lookup
8381
}
8482
85-
type Profile {
83+
type Person {
8684
id: ID!
8785
name: String
8886
}
8987
"""
9088
],
9189
[
92-
"The @is directive on argument 'User.profile(name:)' in schema 'A' contains " +
93-
"invalid syntax in the 'field' argument."
90+
"The @is directive on argument 'Query.personById(id:)' in schema 'A' " +
91+
"contains invalid syntax in the 'field' argument."
9492
]
9593
}
9694
};

0 commit comments

Comments
 (0)