We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c260c4f commit db3b2f1Copy full SHA for db3b2f1
lib/src/matchers.dart
@@ -56,6 +56,16 @@ class PactMatchers {
56
};
57
}
58
59
+ /// Allows heterogenous items to be matched within a list.
60
+ /// Unlike EachLike which must be an array with elements of the same shape,
61
+ /// ArrayContaining allows objects of different types and shapes.
62
+ static Map ArrayContaining(List variants) {
63
+ return {
64
+ 'pact:matcher:type': 'arrayContains',
65
+ 'variants': variants,
66
+ };
67
+ }
68
+
69
/// Matches a "Integer" (int) value, for example, 1.
70
static Map IntegerLike(int example) {
71
return {
0 commit comments