Last active
August 13, 2018 09:31
-
-
Save charbgr/d9fa8249368b9cadc0235024649e9733 to your computer and use it in GitHub Desktop.
Mocking dependencies in unit-test using Koin
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
declare { // It is provided in koin-test utilities | |
single("draftStorage") { | |
FakeStorage() as Storage | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment