Skip to content

Commit

Permalink
make conversion reversed
Browse files Browse the repository at this point in the history
I accidentally forgot to use the reversed conversion in the design doc.
This fixes the test case to do that. This is not the doing of the developers.
  • Loading branch information
huss committed Feb 23, 2025
1 parent 25df5f2 commit 8297272
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server/test/web/readingsCompareMeterQuantity.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ mocha.describe('readings API', () => {
// add c2 to existing conversionData
const conversionData = conversionDatakWh.concat([
{
sourceName: 'kWh',
destinationName: 'MJ',
sourceName: 'MJ',
destinationName: 'kWh',
bidirectional: true,
slope: 3.6,
slope: 1 / 3.6,
intercept: 0,
note: 'kWhMJ'
note: 'MJkWh'
}
]);
await prepareTest(unitData, conversionData, meterDatakWh);
Expand Down

0 comments on commit 8297272

Please sign in to comment.