Skip to content

Instantly share code, notes, and snippets.

@arildojr7
Created August 10, 2023 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arildojr7/b7ab300ed14d0f098a0204aa5abce1da to your computer and use it in GitHub Desktop.
Save arildojr7/b7ab300ed14d0f098a0204aa5abce1da to your computer and use it in GitHub Desktop.
simple iris mock interceptor
@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