Skip to content

Add tests to workout parser #31

Open
@lizTheDeveloper

Description

@lizTheDeveloper

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions