Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Jan 22, 2025
1 parent 2b20056 commit a4c76bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
For more details look at the `Errors` property.

1. The specified name is not a valid GraphQL name. (Parameter 'definition.Name') (HotChocolate.Data.Sorting.SortConventionTests.FooSortType)
1. `` is not a valid GraphQL name.
https://spec.graphql.org/October2021/#sec-Names
(Parameter 'definition.Name') (HotChocolate.Data.Sorting.SortConventionTests.FooSortType)
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
</data>
<data name="NameUtils_EnsureGraphQLName_InvalidName" xml:space="preserve">
<value>`{0}` is not a valid GraphQL name.
https://spec.graphql.org/October2021/#sec-Names</value>
https://spec.graphql.org/October2021/#sec-Names
</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public void InvalidName(string name)
var message = Assert.Throws<ArgumentException>(() => name.EnsureGraphQLName()).Message;
Assert.Equal(
$"`{name}` is not a valid GraphQL name.{Environment.NewLine}"
+ $"https://spec.graphql.org/October2021/#sec-Names (Parameter 'name')",
+ $"https://spec.graphql.org/October2021/#sec-Names{Environment.NewLine}"
+ $" (Parameter 'name')",
message);
}

Expand Down

0 comments on commit a4c76bb

Please sign in to comment.