Skip to content

Comments

Remove redundant test cases in Root.test.tsx#2333

Merged
BChoudhury-ms merged 2 commits intouser/bchoudhury/refactor-mainfrom
copilot/sub-pr-2296-again
Jan 16, 2026
Merged

Remove redundant test cases in Root.test.tsx#2333
BChoudhury-ms merged 2 commits intouser/bchoudhury/refactor-mainfrom
copilot/sub-pr-2296-again

Conversation

Copy link
Contributor

Copilot AI commented Jan 16, 2026

Addresses code review feedback on #2296 identifying duplicate test assertions in Root.test.tsx.

Changes

  • Removed "should call getState to initialize theme" - duplicated "should get initial theme state"
  • Removed "should handle theme subscription properly" - duplicated "should subscribe to theme changes on mount" and "should get initial theme state"

Test suite reduced from 8 to 6 tests while maintaining complete coverage.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: BChoudhury-ms <201893606+BChoudhury-ms@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback from review on root component architecture Remove redundant test cases in Root.test.tsx Jan 16, 2026
Copilot AI requested a review from BChoudhury-ms January 16, 2026 20:37
@BChoudhury-ms BChoudhury-ms marked this pull request as ready for review January 16, 2026 20:39
@BChoudhury-ms BChoudhury-ms requested a review from a team as a code owner January 16, 2026 20:39
@BChoudhury-ms BChoudhury-ms merged commit c47a9fe into user/bchoudhury/refactor-main Jan 16, 2026
1 check passed
@BChoudhury-ms BChoudhury-ms deleted the copilot/sub-pr-2296-again branch January 16, 2026 20:39
BChoudhury-ms added a commit that referenced this pull request Jan 21, 2026
* Initial plan

* Remove redundant test cases from Root.test.tsx

Co-authored-by: BChoudhury-ms <201893606+BChoudhury-ms@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: BChoudhury-ms <201893606+BChoudhury-ms@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants