Created
August 10, 2023 20:44
-
-
Save arildojr7/b7ab300ed14d0f098a0204aa5abce1da to your computer and use it in GitHub Desktop.
simple iris mock interceptor
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
@IrisMockInterceptor | |
class MockInterceptor : Interceptor { | |
override fun intercept(chain: Interceptor.Chain) = irisMockScope(chain) { | |
onGet(endsWith = "starred") mockResponse getListOfReposBeingStarredJson | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment