Skip to content

Commit bf428bb

Browse files
Copilotxperiandri
andauthored
Strengthen integration assertion for error kind extension
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/d64ab4ee-eb67-4b7c-a114-d6ad4b640254 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
1 parent f58b1bf commit bf428bb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/FSharp.Data.GraphQL.IntegrationTests/OperationErrorTests.fs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,7 @@ let ``Should map server error extensions and locations into operation result`` (
6464
error.Extensions.ContainsKey "severity" |> equals true
6565
error.Extensions.["severity"] |> equals (box 7)
6666
error.Extensions.ContainsKey "kind" |> equals true
67+
match error.Extensions.["kind"] with
68+
| :? string as kind -> kind |> equals "Execution"
69+
| :? int as kind -> kind |> equals 3
70+
| kind -> failwithf "Unexpected kind extension value: %A" kind

0 commit comments

Comments
 (0)