You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to match the below and for some reason it does not pass.
Scenario:
parent is ACTUAL and cancelResponse.data.parent is EXPECTED
my question is why doesn't a json array of objects as the actual match a sub-set json array of objects?
all the keys and values in the expected are in the actual so contains should cover that.
* match parent contains ['#(cancelResponse.data.parent)']
```js
ACTUAL:
[{"num":"111111111111111111","Tdate":"2019-11-22","type":"cars",
"orig":"555555555555",
"tdate":"2019-11-22","part":3,"sessId":"777","evtTyp":"fly",
"src":"nyx","token":"hal","evtTs":"2019-11-22T13:27:58.246235000",
"orgt":"xx","ord":"bba",
"loren":"dim","lao":"foo","car":"234234234",
"order":"6621","ordback":"1","ordTyp":"1","ordCpcty":"A"}]
EXPECTED:
[{"num":"111111111111111111",
"Tdate":"2019-11-22","type":"cars",
"orig":"555555555555"}],
reason: actual value does not contain expected
The text was updated successfully, but these errors were encountered:
@si-mikey sorry I can't understand your question as it is incomplete. but first can you read this issue (and the linked issues) to see if that answers your question: #925
Hello,
I am trying to match the below and for some reason it does not pass.
Scenario:
parent is ACTUAL and cancelResponse.data.parent is EXPECTED
my question is why doesn't a json array of objects as the actual match a sub-set json array of objects?
all the keys and values in the expected are in the actual so contains should cover that.
The text was updated successfully, but these errors were encountered: