Skip to content

Commit

Permalink
Edit tests so that deleting third level submeter is covered
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuso Valkeejärvi committed Nov 23, 2022
1 parent 42082ac commit 1ba99e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/services/meter-hiearchy-helpers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ describe('MeterHierarchyHelpers', () => {
facilityId: 4,
name: 'mittari 5',
subMeters: [
{ id: 12, name: 'Meter 12', facilityId: 4, subMeters: undefined },
{ id: 13, name: 'Meter 13', facilityId: 4, subMeters: undefined }
]
},
Expand All @@ -122,7 +123,6 @@ describe('MeterHierarchyHelpers', () => {
subMeters: [
{ id: 45, name: 'meter45', facilityId: 88, subMeters: undefined },
{ id: 46, name: 'meter46', facilityId: 88, subMeters: undefined },
{ id: 48, name: 'meter48', facilityId: 88, subMeters: undefined }
]
}
]
Expand All @@ -135,7 +135,7 @@ describe('MeterHierarchyHelpers', () => {
}
];

expect(helpers.getHierarchyWithoutMeter(hierarchy, 12)).toEqual(expectedHierarchy);
expect(helpers.getHierarchyWithoutMeter(hierarchy, 48)).toEqual(expectedHierarchy);
});
});

Expand Down

0 comments on commit 1ba99e7

Please sign in to comment.