Skip to content

Aaryaneil - Updated allTimeEntriesReducer Unit Tests#3348

Merged
one-community merged 1 commit into
developmentfrom
aaryaneil-allTimeEntriesReducer-UnitTest
Apr 3, 2025
Merged

Aaryaneil - Updated allTimeEntriesReducer Unit Tests#3348
one-community merged 1 commit into
developmentfrom
aaryaneil-allTimeEntriesReducer-UnitTest

Conversation

@aaryaneil
Copy link
Copy Markdown
Contributor

Description

Unit test for src/reducers/allTimeEntriesReducer.js, updated from previous PR (#2972 ) to fix merge conflicts.

Main changes explained:

Added test cases for the following:

  1. should return the initial state when no action is passed
  2. should handle GET_ALL_TIME_ENTRIES action and return payload
  3. should return the previous state when an unknown action is passed

How to test:

  1. check into current branch
  2. do npm install and npm test allTimeEntriesReducer.test.js to run this PR locally

Related PRs:

PR #2972

Screenshots or videos of changes:

Screenshot 2024-12-21 at 6 04 19 AM

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 2, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 171b06a
🔍 Latest deploy log https://app.netlify.com/sites/highestgoodnetwork-dev/deploys/67ec7ff41b99030008778a2e
😎 Deploy Preview https://deploy-preview-3348--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@aaryaneil aaryaneil changed the title Updated file to fix merge conflicts. Aaryaneil - Updated allTimeEntriesReducer Unit Tests Apr 2, 2025
Copy link
Copy Markdown

@palankigreeshma1109 palankigreeshma1109 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reviewed this PR and followed all the steps mentioned and found that all tests run successfully.
I am attaching a screenshot for your reference.

image

@one-community
Copy link
Copy Markdown
Member

Thank you all, merging!

@one-community one-community merged commit 70e30a5 into development Apr 3, 2025
Copy link
Copy Markdown

@nikhilpittala16 nikhilpittala16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested the PR and all the test cases have passed.
image

Copy link
Copy Markdown

@akanksha7 akanksha7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified that all test cases are passing.
Screenshot 2025-04-05 at 11 31 53 PM

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.

5 participants