Hi Team, I have one more query to ask here. I want...
# pact-js
h
Hi Team, I have one more query to ask here. I wanted to validate one response attribute which is like
"completed": "2022-01-21T07:58:42.196238Z",
I used matcher like
completed: Matchers.iso8601DateTimeWithMillis("2022-01-21T07:58:26.251019Z"),
to validate it. In some cases it gives me value
null
instead of date format string value. I know in pact we should try to get that state in provider states if we want to check exact case. still looking if there is another way to validate it.
m
I think you’ve answered your own question, but see also https://docs.pact.io/faq#why-is-there-no-support-for-specifying-optional-attributes