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 to workout parser #31

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

Add tests to workout parser #31

lizTheDeveloper opened this issue Feb 16, 2018 · 0 comments

Comments

@lizTheDeveloper
Copy link
Contributor

lizTheDeveloper commented Feb 16, 2018

Add tests to the Workout class in lib/workout.js.

  • Test the parser with 10 real workouts from the curriculum
  • Ensure all yaml properties are set
  • Ensure that insights are ordered by the insights yaml field
  • Ensure that Exercises are properly parsed
  • Ensure that the slug is properly set for workouts
  • Ensure that the .toJSON() property can create or update our mongoose workout models
  • Ensure that the render method can reproduce what was parsed, even for unsupported yaml fields
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