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
Conversation
19a5b90
to
20d66d1
Compare
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
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.