Open therealansh opened 4 months ago
@unicodeveloper @Cliftonz @mayorJAY ^^
All the publicly accessible functions in this SDK are extension functions, try using mockk or mockito-kotlin to mock extension functions. That will solve the problem. See https://stackoverflow.com/questions/44382540/mocking-extension-function-in-kotlin
@therealansh Is this resolved?
Hey folks, i am trying to write some UTs around my Novu service class. For that i am using mockito to mock the behavior of Novu. However, I am blocked because the APIs are marked as internal which makes is accessible only to its project scope. Any workaround i can do to mock Novu and do something like this: