Skip to content

Commit

Permalink
docs: Added information about IgnoreNode using JSON path not supported (
Browse files Browse the repository at this point in the history
#163)

* Added information about IgnoreNode using JSON path not supported

* Update docs/preview/02-Features/02-assertion.md
  • Loading branch information
ClementVaillantCodit authored Jul 19, 2024
1 parent ec39775 commit 918aec6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/preview/02-Features/02-assertion.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ AssertJson.Equal(..., options =>
});
```

> 💡 `IgnoreNode` from a JSON path is currently unsupported by Arcus.Testing. As workaround you can use [Newtonsoft.Json](https://www.newtonsoft.com/json) library to parse the JSON string and remove the node before using the `AssertJson.Equal` method.
### Loading JSON nodes yourself
The JSON assertion equalization can be called directly with raw contents - internally it parses to a valid JSON structure: `JsonNode`. If you want to compare two JSON nodes with different serialization settings, you can load the two nodes separately and do the equalization on the loaded nodes.

Expand Down

0 comments on commit 918aec6

Please sign in to comment.