-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ImageDownloader mockable (#161)
Summary In order to write downloading tests without needing access to the internet, it is necessary to be able to mock an ImageDownloader. Implementation This PR makes a protocol `ImageDownloaderType` that can then mock an ImageDownloader. This requires making the Response struct to have a public init as well.
- Loading branch information
1 parent
c940f57
commit 805e7f4
Showing
1 changed file
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters