Closed kinbiko closed 3 years ago
It's not possible to use this package to make assertions against payloads that have arrays that aren't deterministic in their ordering.
Expose a directive similar to <<PRESENCE>> that can be added as the first element of the array in order to ignore ordering.
<<PRESENCE>>
// should pass ja.Assertf(`["foo", "bar"]`, `["<<UNORDERED>>", "bar", "foo"]`)
This issue was created based on the request from @blaskovicz on #25.
What problem are you trying to solve?
It's not possible to use this package to make assertions against payloads that have arrays that aren't deterministic in their ordering.
Describe how you wish this package would help you solve the problem
Expose a directive similar to
<<PRESENCE>>
that can be added as the first element of the array in order to ignore ordering.References
This issue was created based on the request from @blaskovicz on #25.