diff --git a/packages/mocktail/README.md b/packages/mocktail/README.md index 339f570..ff2adc5 100644 --- a/packages/mocktail/README.md +++ b/packages/mocktail/README.md @@ -83,6 +83,7 @@ expect(cat.likes('fish', isHungry: false), isTrue); // You can verify the interaction for specific arguments. verify(() => cat.likes('fish', isHungry: false)).called(1); +verify(() => cat.likes(any(that: isA().having((food) => food.name, 'name', 'Fish')))).called(1); // You can stub a method using argument matcher: `any`. // When stubbing a positional argument, use `any()`.