Aaryaneil - Created unit tests for leaderboardDataReducer.#2738
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Dk-21
left a comment
There was a problem hiding this comment.
PR 2738
@aaryaneil
Tested the unit test file and all cases passed.
RishithaMamidala
left a comment
There was a problem hiding this comment.
@aaryaneil
All test cases passed successfully. The reducers returned the default state when no action was passed, correctly updated the state for GET_LEADERBOARD_DATA and GET_ORG_DATA actions, and maintained state immutability when unknown action types were passed.

slidracoon72
left a comment
There was a problem hiding this comment.
#2738
@aaryaneil
Verified the unit test file, and all test cases successfully passed.
|
Hi @aaryaneil ,
|
nikhilgiri0226
left a comment
There was a problem hiding this comment.
I have reviewed this PR and all the below test cases were passed successfully.
should return default state when no action is passed
should return updated state when GET_LEADERBOARD_DATA action is passed
should not mutate state when unknown action type is passed
should return default state when no action is passed (orgDataReducer)
should return updated state when GET_ORG_DATA action is passed
should not mutate state when unknown action type is passed (orgDataReducer)
Kindly, find the screenshot below.
|
Thank you all, merging! |












Description
Unit test for
src/reducers/leaderboardDataReducer.jsMain changes explained:
Added test cases for the following:
How to test:
npm installandnpm test leaderboardDataReducer.test.jsScreenshots or videos of changes: