Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update subscription module with email validation #356

Merged
merged 6 commits into from
May 16, 2024

Conversation

braianj
Copy link
Contributor

@braianj braianj commented May 14, 2024

No description provided.

@braianj braianj self-assigned this May 14, 2024
src/modules/subscription/sagas.spec.ts Outdated Show resolved Hide resolved
src/modules/subscription/sagas.spec.ts Outdated Show resolved Hide resolved
src/modules/subscription/reducer.spec.ts Outdated Show resolved Hide resolved
src/modules/subscription/reducer.spec.ts Outdated Show resolved Hide resolved
@@ -47,14 +58,52 @@ describe('when reducing the get subscription success action', () => {
subscriptionDetails: { ...objectToCamel(subscription.details), ignoreAllInApp: true }
}
})
describe('and there is no email nor unconfirmedEmail', () => {
it('should return a state with the default subscription details set without the email and the loading state cleared', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it the default subscription details? It's setting the subscription details that came with the action.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can you check again?

src/modules/subscription/reducer.spec.ts Outdated Show resolved Hide resolved
src/modules/subscription/reducer.spec.ts Outdated Show resolved Hide resolved
@braianj braianj merged commit 90073a7 into master May 16, 2024
6 checks passed
@braianj braianj deleted the feat/subscription-email branch May 16, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants