Hey everyone! Probably a pretty basic question but...
# mockk
a
Hey everyone! Probably a pretty basic question but I can’t seem to find a way to get this to work Let’s say I’m mocking a function that returns a boolean, but I want that
returns
to get the value instead of it staying the same I have
Copy code
val mockedRegistered = false
every {
     user.isRegistered()
} returns mockedRegistered
But I want the returned value to change to
true
when I change
mockedRegistered
to
true
, is there a way to do this?