expectJsonMatch and includes Usage #221
-
Hi, I have used includes with expectJsonMatch in javascript in this way :- expectJsonMatch(
'payload[*].classes[*]',
includes({
id: 'ea99500d-8d52-fc52-b5a5-10dcd1e9d2bd',
displayName: 'Windows Computer',
singleton: false
})
); I understand that in docs of pactum it says to use with the properties . However, in the above way it works nicely and serves my purpose aswell. Now, when I am switching to typescript, this option does not work anymore. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
includes only accepts a string as input. |
Beta Was this translation helpful? Give feedback.
includes only accepts a string as input.
expectJsonLike
might suite better here.