Skip to content

Commit

Permalink
docs(mocktail): update README.md to include any(that: ...) (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
rocboronat committed Jan 19, 2024
1 parent 22e45f1 commit 5d4573a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mocktail/README.md
Expand Up @@ -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<Food>().having((food) => food.name, 'name', 'Fish')))).called(1);
// You can stub a method using argument matcher: `any`.
// When stubbing a positional argument, use `any()`.
Expand Down

0 comments on commit 5d4573a

Please sign in to comment.