While the existing field assertions do bring coverage to the existence of of keys in the fields array on an Action, they still leave a couple of important gaps:
Actions with [] no fields
Any desired assertions about the values of the fields array.
The method added here affords a low-effort way to cover both of these cases by simply exposing the fields array via the MockAction. Let me know what you think.
While the existing field assertions do bring coverage to the existence of of keys in the fields array on an Action, they still leave a couple of important gaps:
[]
no fieldsThe method added here affords a low-effort way to cover both of these cases by simply exposing the
fields
array via theMockAction
. Let me know what you think.