WeTransfer / Mocker

Mock Alamofire and URLSession requests without touching your code implementation
MIT License
1.12k stars 96 forks source link

The "Empty Responses" example doesn't work: No exact matches in call to initializer #145

Closed DominikPalo closed 1 year ago

DominikPalo commented 1 year ago

I'm trying to mock empty responses according to the example provided in the readme file, but it seems the code snippet is not compatible with the latest version (3.0.1) of the framework. There is a line:

let mock = Mock(request: request, statusCode: 204)

which prevents Xcode from building the app, as there is no such initializer on the Mock structure: No exact matches in call to initializer

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.

DominikPalo commented 1 year ago

Opening a new issue, as the problem is still present: https://github.com/WeTransfer/Mocker/issues/147