Skip to content

Commit

Permalink
Modified Test Case C6 in readingsCompareMeterQuantity.js file as per …
Browse files Browse the repository at this point in the history
…requests in PR #1413
  • Loading branch information
miaescobar1 committed Dec 18, 2024
1 parent 8bc2fb5 commit c100d2d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/server/test/web/readingsCompareMeterQuantity.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,21 @@ mocha.describe('readings API', () => {
expectCompareToEqualExpected(res, expected);
});

mocha.it('C6: 28 day shift end 2022-10-31 17:00:00 for 15 minute reading intervals and quantity units & kWh as kWh', async () => {
mocha.it('28 day shift end 2022-10-31 17:12:34 (partial hour) for 15 minute reading intervals and quantity units & kWh as kWh', async () => {
await prepareTest(unitDatakWh, conversionDatakWh, meterDatakWh);
const unitId = await getUnitId('kWh');
const expected = [108269.924822581, 108889.847659507];
const res = await chai.request(app).get('/api/compareReadings/meters/${METER_ID}')
const res = await chai.request(app).get(`/api/compareReadings/meters/${METER_ID}`)
.query({
curr_start: '2022-10-09 00:00:00',
curr_end: '2022-10-31 17:00:00',
curr_end: '2022-10-31 17:12:34',
shift: 'P28D',
graphicUnitID:unitId
graphicUnitId: unitId
});
expectCompareToEqualExpected(res, expected);
});
expectCompareToEqualExpected(res, expected);
});

mocha.it('C8: 1 day shift end 2022-10-31 17:00:00 for 15 minute reading intervals and quantity units & kWh as MJ', async () => {
// Use predefined unit and conversion data
Expand Down

0 comments on commit c100d2d

Please sign in to comment.