Last active
August 31, 2018 09:28
-
-
Save Markus-Ende/5c8ace3cedf3f45e359fa40cf39d7877 to your computer and use it in GitHub Desktop.
Caution, used in Medium article!
This file contains hidden or 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
const mockService: MyService = mock(MyService); | |
when(mockService.someFunction()).thenReturn('some value'); | |
const mockServiceInstance: MyService = instance(mockService); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment