We need to implement a unit test that verifies sets can be added to an exercise instance correctly.
Task
Create a unit test that:
Adds sets to an activity instance.
Verifies that the sets are correctly associated with the exercise.
Requirements
The unit test should be placed in the appropriate test directory.
Use Jest
Ensure that all necessary setup and teardown steps are included.
The test should cover at least the following scenarios:
Adding a single set to an exercise.
Adding multiple sets to an exercise.
Acceptance Criteria
A new unit test file is created in the test directory.
The test correctly adds sets to an activity
The test verifies that the sets are correctly associated with the activity.
The test passes without any errors.
Description
We need to implement a unit test that verifies sets can be added to an exercise instance correctly. Task
Create a unit test that:
Requirements
The unit test should be placed in the appropriate test directory. Use Jest Ensure that all necessary setup and teardown steps are included. The test should cover at least the following scenarios: Adding a single set to an exercise. Adding multiple sets to an exercise.
Acceptance Criteria
A new unit test file is created in the test directory. The test correctly adds sets to an activity The test verifies that the sets are correctly associated with the activity. The test passes without any errors.