Skip to content

test : add unit tests for themes.ts #2850

Description

@tmdeveloper007

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.

Metadata

Metadata

Assignees

Labels

gssoc:assignedGSSoC: Issue assigned to a contributor

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions