Skip to content

Commit

Permalink
Revert tests/snapshot to remove camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
daningenthron committed Oct 12, 2019
1 parent 76f2abc commit 7d09618
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions app/javascript/onboarding/__tests__/Onboarding.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ describe('<Onboarding />', () => {
test('should not move if terms and conditions are not met', () => {
const event = {
target: {
value: 'checkedCodeOfConduct',
name: 'checkedCodeOfConduct',
value: 'checked_code_of_conduct',
name: 'checked_code_of_conduct',
},
};
onboardingSlides
Expand All @@ -115,22 +115,22 @@ describe('<Onboarding />', () => {
fetch.once({});
onboardingSlides.find('#checked_code_of_conduct').simulate('change', {
target: {
value: 'checkedCodeOfConduct',
name: 'checkedCodeOfConduct',
value: 'checked_code_of_conduct',
name: 'checked_code_of_conduct',
},
});

onboardingSlides
.find('#checked_terms_and_conditions')
.simulate('change', {
target: {
value: 'checkedTermsAndConditions',
name: 'checkedTermsAndConditions',
value: 'checked_terms_and_conditions',
name: 'checked_terms_and_conditions',
},
});

const emailTerms = onboardingSlides.find(<EmailTermsConditionsForm />);
expect(emailTerms.state('checkedCodeOfConduct')).toBe(true);
expect(emailTerms.state('checked_code_of_conduct')).toBe(true);
onboardingSlides.find('.next-button').simulate('click');
await flushPromises();
expect(onboardingSlides.state().currentSlide).toBe(2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ preact-render-spy (1 nodes)
<input
type="checkbox"
id="checked_code_of_conduct"
name="checkedCodeOfConduct"
name="checked_code_of_conduct"
checked={false}
onChange={[Function bound handleChange]}
/>
Expand All @@ -140,7 +140,7 @@ preact-render-spy (1 nodes)
<input
type="checkbox"
id="checked_terms_and_conditions"
name="checkedTermsAndConditions"
name="checked_terms_and_conditions"
checked={false}
onChange={[Function bound handleChange]}
/>
Expand All @@ -158,7 +158,7 @@ preact-render-spy (1 nodes)
<input
type="checkbox"
id="email_membership_newsletter"
name="emailMembershipNewsletter"
name="email_membership_newsletter"
checked={true}
onChange={[Function bound handleChange]}
/>
Expand All @@ -168,7 +168,7 @@ preact-render-spy (1 nodes)
<input
type="checkbox"
id="email_digest_periodic"
name="emailDigestPeriodic"
name="email_digest_periodic"
checked={true}
onChange={[Function bound handleChange]}
/>
Expand Down

0 comments on commit 7d09618

Please sign in to comment.