Skip to content

Repository files navigation

HealthChallengeTracker

✅ This is the hosted application Link

This project was generated with Angular CLI version 18.1.0.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test --code-coverage to execute the unit tests via Karma.

100% code Coverage for the Component input-form and service workout

Code-Coverage

Coverage100

  • input-form component

  • workout service service

Edge Cases

  1. Empty Inputs: The input-form uses Angular Material form fields with required attributes, ensuring that the form cannot be submitted with empty fields.
  2. Duplicate Entries: The aggregateData method in the display component combines workouts for the same user, updating the workout count and total minutes.
  3. Case Sensitivity: The getFilteredData method converts the user name to lowercase, ensuring case-insensitive search.
  4. Invalid Data Types: The form ensures workout minutes are a number using the number type input.

About

Display the workouts and duration to complete the workouts

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages