Hey guys :wave: ~I have some logic inside the `ini...
# mockk
m
Hey guys 👋 I have some logic inside the
init
block in my
ViewModel
. I would like to set some expected behavior of a mock I have inside the
init
block like this
every { repository.getSomething() } returns SomeEnum.A
. The problem is this expected answer is executed after the
init
block. If I put the
every { ... }
part to
@Before
function it works fine, but I would like to set this expected answer only for one specific test. Any ideas?
SOLVED. It was a KOIN issue
👍 1