Join Slack
Powered by
Hello, i have an Array which can be empty or have ...
# pact-js
m
Marcello Rigan
05/11/2022, 10:11 AM
Hello, i have an Array which can be empty or have 1 or 2 Entries. For multiple Entries i would have used Eachlike? But what about the case if its empty. Do i have to add an extra interaction for that or is there another way ?
m
Matt (pactflow.io / pact-js / pact-go)
05/11/2022, 10:22 AM
You need two interactions: see
https://docs.pact.io/faq#why-is-there-no-support-for-specifying-optional-attributes
👌 1
m
Marcello Rigan
05/11/2022, 12:39 PM
Thank you for your help
👍 1
Open in Slack
Previous
Next