Skip to content

allOf, anyOf etc. does not permit arrays of matchers #16

@kordzik

Description

@kordzik

Sometimes it's useful to dynamically generate an array of matchers and pass it to allOf, anyOf etc. Unfortunately those functions only seem to support arguments list OOTB, so they need to be called using

__.allOf.apply(this, mymatchers);

instead, which is not too bad, but it'd be nice if there was a check for when arguments.length === 1 and the only argument is an array, and use the array as input to AllOf (and other aggregate matchers).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions