Hello everyone, I'm using `mockkObject` to mock an...
# mockk
a
Hello everyone, I'm using
mockkObject
to mock an object, since it's an object that makes external requests, is it possible to have the mocked version return an error if a method isn't mocked?
m
I thought that was the default behaviour, hence the existence of relaxedMock.
a
Not in my case, if I only have
mockkObject(Client)
all the calls go through
maybe that's the case only for
mockk
as
mockkObject
doesn't have the relaxed option
m
Ahhh, yes. Missed that you're mocking an object and not a class. Sorry about that.