Skip to content

Commit

Permalink
Fixed Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Nov 6, 2024
1 parent 013a451 commit d8ef063
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ public async Task SimpleMutation_Override_Payload()
schema.MatchSnapshot();
}

#if NET7_0_OR_GREATER
[Fact]
public async Task SimpleMutation_Override_Payload_WithError()
{
Expand All @@ -450,6 +451,7 @@ public async Task SimpleMutation_Override_Payload_WithError()

schema.MatchSnapshot();
}
#endif

[Fact]
public async Task SimpleMutation_Override_Input()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
{
"Kind": "SingleResult",
"RequestIndex": null,
"VariableIndex": null,
"Label": null,
"Path": null,
"Data": {
{
"data": {
"__typename": "Query"
},
"Items": null,
"Errors": null,
"Extensions": {
"extensions": {
"persistedDocument": true
},
"Incremental": null,
"ContextData": null,
"HasNext": null,
"IsDataSet": true
}
}
Original file line number Diff line number Diff line change
@@ -1,32 +1,11 @@
{
"Kind": "SingleResult",
"RequestIndex": null,
"VariableIndex": null,
"Label": null,
"Path": null,
"Data": null,
"Items": null,
"Errors": [
{
"errors": [
{
"Message": "The specified persisted operation key is invalid.",
"Code": "HC0020",
"Path": null,
"Locations": null,
"Extensions": {
"message": "The specified persisted operation key is invalid.",
"extensions": {
"code": "HC0020",
"requestedKey": {
"IsEmpty": false,
"Value": "does_not_exist"
}
},
"Exception": null
"requestedKey": "does_not_exist"
}
}
],
"Extensions": null,
"Incremental": null,
"ContextData": {
"HotChocolate.Execution.Transport.HttpStatusCode": 400
},
"HasNext": null,
"IsDataSet": false
]
}

0 comments on commit d8ef063

Please sign in to comment.