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

Add unit tests for teacher application secion 4: workshops selection #19590

Merged
merged 3 commits into from Dec 13, 2017

Conversation

aoby
Copy link
Contributor

@aoby aoby commented Dec 12, 2017

There's a bit of complex logic in section 4 of the teacher application: loading assigned workshops via API based on school & course, then sometimes additionally loading alternate workshops. This adds unit tests for that logic.

@aoby
Copy link
Contributor Author

aoby commented Dec 12, 2017

@aoby aoby force-pushed the pd-teacher-application-unit-tests branch from 19a5b90 to 20d66d1 Compare December 12, 2017 20:15
@@ -183,8 +184,8 @@ export default class Section4SummerWorkshop extends ApplicationFormComponent {
return (
<div>
<h5>
Your region’s assigned summer workshop will be
{' ' + this.state.partnerWorkshops[0].dates + ' '} in
Your region’s assigned summer workshop will be
Copy link
Contributor

Choose a reason for hiding this comment

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

Intentional? Are you trying to indent this paragraph?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

unintentional. will fix

@@ -183,8 +184,8 @@ export default class Section4SummerWorkshop extends ApplicationFormComponent {
return (
<div>
<h5>
Your region’s assigned summer workshop will be
{' ' + this.state.partnerWorkshops[0].dates + ' '} in
Your region’s assigned summer workshop will be
Copy link
Contributor

Choose a reason for hiding this comment

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

Prefer using string interpolation for this

@aoby aoby merged commit 3c043da into staging Dec 13, 2017
@aoby aoby deleted the pd-teacher-application-unit-tests branch December 13, 2017 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants