Skip to content

Commit

Permalink
Updated Inline Test Snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Oct 31, 2023
1 parent c7d2ff6 commit a95df16
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ public async Task ValidationError(string? acceptHeader, HttpTransportVersion tra
Status Code: {expectedStatusCode}
-------------------------->
" +
@"{""errors"":[{""message"":""Expected a \u0060Name\u0060-token, but found a " +
@"\u0060Dollar\u0060-token."",""locations"":[{""line"":1,""column"":8}]," +
@"{""errors"":[{""message"":""Expected a `Name`-token, but found a " +
@"`Dollar`-token."",""locations"":[{""line"":1,""column"":8}]," +
@"""extensions"":{""code"":""HC0011""}}]}");
}

Expand Down Expand Up @@ -246,18 +246,18 @@ public async Task ValidationError2(string? acceptHeader, HttpTransportVersion tr
Status Code: {expectedStatusCode}
-------------------------->
" +
@"{""errors"":[{""message"":""\u0060__type\u0060 is an object, interface or " +
@"{""errors"":[{""message"":""`__type` is an object, interface or " +
@"union type field. Leaf selections on objects, interfaces, and unions without " +
@"subfields are disallowed."",""locations"":[{""line"":1,""column"":3}]," +
@"""extensions"":{""declaringType"":""Query"",""field"":""__type""," +
@"""type"":""__Type"",""responseName"":""__type""," +
@"""specifiedBy"":""http://spec.graphql.org/October2021/#sec-Field-Selections-" +
@"on-Objects-Interfaces-and-Unions-Types""}},{""message"":""The field \u0060name" +
@"\u0060 does not exist on the type \u0060Query\u0060."",""locations"":[{" +
@"on-Objects-Interfaces-and-Unions-Types""}},{""message"":""The field `name" +
@"` does not exist on the type `Query`."",""locations"":[{" +
@"""line"":1,""column"":10}],""extensions"":{""type"":""Query""," +
@"""field"":""name"",""responseName"":""name"",""specifiedBy"":" +
@"""http://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-" +
@"Interfaces-and-Unions-Types""}},{""message"":""The argument \u0060name\u0060 " +
@"Interfaces-and-Unions-Types""}},{""message"":""The argument `name` " +
@"is required."",""locations"":[{""line"":1,""column"":3}],""extensions"":{" +
@"""type"":""Query"",""field"":""__type"",""argument"":""name""," +
@"""specifiedBy"":""http://spec.graphql.org/October2021/#sec-Required-Arguments""" +
Expand Down Expand Up @@ -293,7 +293,7 @@ public async Task UnsupportedAcceptHeaderValue()
Status Code: BadRequest
-------------------------->
{""errors"":[{""message"":""Unable to parse the accept header value " +
@"\u0060unsupported\u0060."",""extensions"":{""headerValue"":""unsupported""," +
@"`unsupported`."",""extensions"":{""headerValue"":""unsupported""," +
@"""code"":""HC0064""}}]}");
}

Expand Down Expand Up @@ -325,7 +325,7 @@ public async Task UnsupportedApplicationAcceptHeaderValue()
-------------------------->
Status Code: NotAcceptable
-------------------------->
{""errors"":[{""message"":""None of the \u0060Accept\u0060 header values is supported.""," +
{""errors"":[{""message"":""None of the `Accept` header values is supported.""," +
@"""extensions"":{""code"":""HC0063""}}]}");
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"result": "{\n \"errors\": [\n {\n \"message\": \"The ID \\u0060abc\\u0060 has an invalid format.\"\n }\n ]\n}",
"result": "{\n \"errors\": [\n {\n \"message\": \"The ID `abc` has an invalid format.\"\n }\n ]\n}",
"someId": "abc"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"result": "{\n \"errors\": [\n {\n \"message\": \"The IDs \\u0060U29tZQpnMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDA=\\u0060 have an invalid format.\"\n }\n ]\n}",
"result": "{\n \"errors\": [\n {\n \"message\": \"The IDs `U29tZQpnMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDA=` have an invalid format.\"\n }\n ]\n}",
"someId": "U29tZQpnMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDA="
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"errors": [
{
"message": "Could not resolve the actual object type from \u0060HotChocolate.Types.Relay.NodeFieldSupportTests\u002BBar2\u0060 for the abstract type \u0060node\u0060.",
"message": "Could not resolve the actual object type from `HotChocolate.Types.Relay.NodeFieldSupportTests+Bar2` for the abstract type `node`.",
"locations": [
{
"line": 1,
Expand Down

0 comments on commit a95df16

Please sign in to comment.