Skip to content

Commit

Permalink
fix: convert totalRegistrationTime to snake case (#133)
Browse files Browse the repository at this point in the history
Description:
Convert totalRegistrationTime to snake case
VAN-1816

Co-authored-by: Ahtesham Quraish <[email protected]>
  • Loading branch information
ahtesham-quraish and Ahtesham Quraish authored Aug 29, 2024
1 parent 7f2689c commit 2338762
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/forms/registration-popup/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ const RegistrationForm = () => {
payload = {
...onboardingComponentContext, ...queryParams, ...payload,
};
payload = snakeCaseObject(payload);
payload.totalRegistrationTime = totalRegistrationTime;
payload = snakeCaseObject(payload);
dispatch(registerUser(payload));
};

Expand Down
6 changes: 3 additions & 3 deletions src/forms/registration-popup/tests/RegistrationPopup.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe('RegistrationForm Test', () => {
marketing_emails_opt_in: true,
honor_code: true,
terms_of_service: true,
totalRegistrationTime: 0,
total_registration_time: 0,
app_name: 'onboarding_component',
};
const { container } = render(reduxWrapper(<IntlRegistrationForm />));
Expand Down Expand Up @@ -144,7 +144,7 @@ describe('RegistrationForm Test', () => {
honor_code: true,
terms_of_service: true,
country: 'US',
totalRegistrationTime: 0,
total_registration_time: 0,
app_name: 'onboarding_component',
};
const { container } = render(reduxWrapper(<IntlRegistrationForm />));
Expand All @@ -171,7 +171,7 @@ describe('RegistrationForm Test', () => {
email: 'petro @example.com',
password: 'password1',
honor_code: true,
totalRegistrationTime: 0,
total_registration_time: 0,
};

store.dispatch = jest.fn(store.dispatch);
Expand Down

0 comments on commit 2338762

Please sign in to comment.