Skip to content

Commit

Permalink
test: completed demand int tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérôme Gillard committed Nov 15, 2023
1 parent 988eb80 commit 63ca614
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/parsePacket.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ function parsePacket(packet) {
break;

/*
* Demands mappings, seen in belgian peak tarrif with meterType FLU5\253770234_A v50217.
* Demands mappings, seen in Belgian peak tariff with meterType FLU5\253770234_A v50217.
*/
case "1-0:1.4.0": // Positive active demand in a current demand period (A+) [kW]
parsedPacket.electricity.demand = parsedPacket.electricity.demand || {};
Expand Down
2 changes: 1 addition & 1 deletion spec/parsePacketSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,7 @@ describe("parsePacket", function() {
expect(parsedPacket).toEqual(expectedOutputObject);
});

// Test demands code seen on belgian meters (peak tariff)
// Test demands code seen on Belgian meters (peak tariff)
it("should be able to parse a complete DSMR5.0 packet with demands", function() {
const packet = "/FLU5\253770234_A\r\n" +
"\r\n" +
Expand Down

0 comments on commit 63ca614

Please sign in to comment.