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 clientside tests for Facilitator Program Registration #14385
Conversation
3adb954
to
852f8fb
Compare
@@ -0,0 +1,235 @@ | |||
import {assert} from '../util/configuredChai'; |
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.
I think convention is to have the word test in the file name
const DEFAULTS = { | ||
apiEndpoint: "", | ||
course: "", | ||
options: { |
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.
Are these options we can just import from the source js?
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.
nope! Options are by design actually supplied by the server (from Pd::FacilitatorProgramRegistration::OPTIONS
)
/> | ||
); | ||
|
||
// by default, "next" and not "submit" |
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.
You can probably DRY this section. Your call if you want to do that
3fc8563
to
47873d4
Compare
No description provided.