Summary of What Needs to be Done:
Add unit tests for the themes.ts utility module covering isThemeId, getThemeDefinition, isDarkTheme, and nextThemeId functions.
Changes that Need to be Made:
- Create test/themes.test.ts
- Add tests for isThemeId (valid/invalid IDs, null/undefined)
- Add tests for getThemeDefinition (returns correct theme or fallback)
- Add tests for isDarkTheme (returns correct mode)
- Add tests for nextThemeId (cycles through themes correctly)
Impact that it would Provide:
Increases test coverage for the lib directory and ensures theme utility functions behave correctly across all theme options.
Hello @Priyanshu-byte-coder, please assign this issue to me (@tmdeveloper007) so I can open a focused PR.
Summary of What Needs to be Done:
Add unit tests for the themes.ts utility module covering isThemeId, getThemeDefinition, isDarkTheme, and nextThemeId functions.
Changes that Need to be Made:
Impact that it would Provide:
Increases test coverage for the lib directory and ensures theme utility functions behave correctly across all theme options.
Hello @Priyanshu-byte-coder, please assign this issue to me (@tmdeveloper007) so I can open a focused PR.