Hey How to test substring function value ```val ti...
# mockk
v
Hey How to test substring function value
Copy code
val time = item.time?.substring(0, 10)
g
Why do you need any kind of mocking for this? Even if item is mocked, you can just do every { item.time } returns “12345678901234” So you know that substring will be “1234567890"
v
okk thanks