Skip to content

Commit 13562f4

Browse files
authored
Update README.md
1 parent 3bc6ded commit 13562f4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,19 @@ f:should_be_called():with_other_calls_ignored():when(function()
227227
end)
228228
```
229229

230+
## Ignoring All Calls
231+
232+
```lua
233+
local mach = require 'mach'
234+
235+
local f = mach.mock_function('f')
236+
237+
mach.ignore_mocked_calls_when(function()
238+
f()
239+
f(1, 2, 3)
240+
end)
241+
```
242+
230243
## Flexible Syntax
231244

232245
```lua

0 commit comments

Comments
 (0)