Skip to content

Commit

Permalink
Merge pull request #1397 from LauraV-702/laura_working_branch
Browse files Browse the repository at this point in the history
Added testcase C5 to the file readingsCompareMeterQuantity
  • Loading branch information
huss authored Dec 2, 2024
2 parents 82a74d6 + 6fc88eb commit a9defd1
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/server/test/web/readingsCompareMeterQuantity.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,22 @@ mocha.describe('readings API', () => {
});
expectCompareToEqualExpected(res, expected);
});

// Add C4 here

// Add C5 here
mocha.it('C5: 7 day shift end 2022-11-01 15:00:00 (beyond data) for 15 minute reading intervals and quantity units & kWh as kWh', async () => {
await prepareTest(unitDatakWh, conversionDatakWh, meterDatakWh);
const unitId = await getUnitId('kWh');
const expected = [9132.81261972035, 13147.7382388332];
const res = await chai.request(app).get(`/api/compareReadings/meters/${METER_ID}`)
.query({
curr_start: '2022-10-30 00:00:00',
curr_end: '2022-11-01 15:00:00',
shift: 'P7D',
graphicUnitId: unitId
});
expectCompareToEqualExpected(res, expected);
});

// Add C6 here

Expand Down

0 comments on commit a9defd1

Please sign in to comment.