diff --git a/docs/ExpectAPI.md b/docs/ExpectAPI.md index 6b3960463a81..96128f0e85a5 100644 --- a/docs/ExpectAPI.md +++ b/docs/ExpectAPI.md @@ -144,7 +144,7 @@ Although the `.toBe` matcher **checks** referential identity, it **reports** a d ### `.toHaveBeenCalled()` -Use `.toHaveBeenCalledWith` to ensure that a mock function was called with specific arguments. The arguments are checked with the same algorithm that `.toEqual` uses. +Use `.toHaveBeenCalled` to ensure that a mock function was called. For example, let's say you have a `drinkAll(drink, flavour)` function that takes a `drink` function and applies it to all available beverages. You might want to check that `drink` gets called for `'lemon'`, but not for `'octopus'`, because `'octopus'` flavour is really weird and why would anything be octopus-flavoured? You can do that with this test suite: