File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ Mocker is a library written in Swift which makes it possible to mock data reques
30
30
- [Redirect responses](#redirect-responses)
31
31
- [Ignoring URLs](#ignoring-urls)
32
32
- [Mock callbacks](#mock-callbacks)
33
+ - [Unregister Mocks](#unregister-mocks)
34
+ - [Clear all registered mocks](#clear-all-registered-mocks)
33
35
- [ Communication] ( #communication )
34
36
- [ Installation] ( #installation )
35
37
- [ Release Notes] ( #release-notes )
@@ -269,6 +271,14 @@ URLSession.shared.dataTask(with: URLRequest(url: url)).resume()
269
271
wait (for : [requestExpectation, completionExpectation], timeout : 2.0 )
270
272
```
271
273
274
+ ### Unregister Mocks
275
+ ##### Clear all registered mocks
276
+ You can clear all registered mocks:
277
+
278
+ ```swift
279
+ Mocker.removeAll ()
280
+ ```
281
+
272
282
## Communication
273
283
274
284
- If you ** found a bug** , open an issue.
You can’t perform that action at this time.
0 commit comments