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 tests for the Course class #32

Open
5 tasks
lizTheDeveloper opened this issue Feb 16, 2018 · 0 comments
Open
5 tasks

Add tests for the Course class #32

lizTheDeveloper opened this issue Feb 16, 2018 · 0 comments

Comments

@lizTheDeveloper
Copy link
Contributor

Add tests to the Course class, in lib/course.js.

  • Add 10 real examples from the curriculum as fixtures
  • Ensure that all yaml-derived properties are populated properly
  • Ensure the slug is set correctly
  • Ensure that therender function can reproduce what was parsed, even for unsupported yaml fields
  • Ensure that the workouts and sections in a course are ordered by the sections field on the file that is parsed, that Course.workouts field has workouts in their absolute order, and that the Course.sections field has each section from the sections field on the readme, and that each section has workouts in the same order as the slugs from the sections field.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant