You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are integrating with Nylas and cannot cover our code with tests because NylasClient is declared final. Kotlin is making classes final by default.
Please remove the final declaration from NylasClient class and all related classes so we can mock it.
Another option for us is to make a proxy wrapper around NylasClient but it is much more typing and support, and we want to use the library to have less typing and code to support.
The text was updated successfully, but these errors were encountered:
This change makes the NylasClient class and its methods open to enable mocking in tests.
- Added open modifier to NylasClient class
- Made all resource accessor methods (messages, calendars, etc.) open
- Made HTTP execution methods open for comprehensive mocking support
Fixes#257
Co-Authored-By: Aaron de Mello <[email protected]>
We are integrating with Nylas and cannot cover our code with tests because NylasClient is declared final. Kotlin is making classes final by default.
Please remove the final declaration from NylasClient class and all related classes so we can mock it.
Another option for us is to make a proxy wrapper around NylasClient but it is much more typing and support, and we want to use the library to have less typing and code to support.
The text was updated successfully, but these errors were encountered: