File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ f:should_be_called_with(mach.any, 42):
205
205
206
206
## Ignoring Other Calls
207
207
208
- ``` javascript
208
+ ``` lua
209
209
local mach = require ' mach'
210
210
211
211
local f = mach .mock_function (' f' )
@@ -216,7 +216,7 @@ f:should_be_called():and_other_calls_should_be_ignored():when(function()
216
216
end )
217
217
```
218
218
219
- ```javascript
219
+ ``` lua
220
220
local mach = require ' mach'
221
221
222
222
local f = mach .mock_function (' f' )
@@ -227,6 +227,19 @@ f:should_be_called():with_other_calls_ignored():when(function()
227
227
end )
228
228
```
229
229
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
+
230
243
## Flexible Syntax
231
244
232
245
``` lua
You can’t perform that action at this time.
0 commit comments