Implement functions findMeterWithId
and getHierarchyWithoutMeter
in file src/app/services/meter-hierarchy-helpers.ts
.
Don't modify any other files.
Functions are considered implemented when tests pass. Tests can be run with command ng test
.
Try to make solution clean and efficient.
Required software:
- nodejs v16 or newer
- npm
- angular CLI (can be installed with command
npm -g i @angular/cli
)