Skip to content

Commit

Permalink
feat: Remove console.log statements from payload test files
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuscardosodeveloper committed Jun 7, 2024
1 parent 7a5638a commit 9bc68f6
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions decoders/connector/dragino/cpl01/v1.0.0/payload.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ function preparePayload(payloadHex: string) {
describe("unit tests", () => {
const payloadHex = "f86778705021331700640c7817010000000000090000026315537b0100000b00002663510fed0100000b00002663510fed0100000b00002663510fed0100000b00002663510fed0100000b00002663510fed0100000b00002663510fed0100000b00002663510fed0100000b00002663510882";
const result = preparePayload(payloadHex);
console.log(result.parse_error);
console.log(result);

test("Output result is type: array", () => {
expect(Array.isArray(result.payload)).toBe(true);
Expand Down
2 changes: 0 additions & 2 deletions decoders/connector/milesight/em400-tld/v1.0.0/payload.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ describe("First unit test. battery, temp, dist ,position", () => {
const payloadHex = "0175640367f80004820101050000";
const result = preparePayload(payloadHex);

console.log(result);

test("Output result is type: array", () => {
expect(Array.isArray(result.payload)).toBe(true);
});
Expand Down
1 change: 0 additions & 1 deletion decoders/connector/milesight/uc300/v1.0.0/payload.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ describe("Unit test ", () => {
const payloadHex =
"ff190002020b00ff190102020200ff190202020d00ff190302026100ff190402023900ff190502023700ff190602022400ff190702021900ff190802022500ff190902023600ff190a02021700ff190b02021c00ff190c02022400ff190d02022700ff190e02022d00ff190f02022f00ff191002020b00ff191102022500ff191202024000ff191302024300ff191402024700ff191502024d00ff191602025000ff191702025600ff191802025900ff191902025d00ff191a02026000ff191b02022d00ff191c02028d00ff191d02021200ff191e02021800ff191f02020900";
const result = preparePayload(payloadHex);
console.log(result);

expect(result.modbus?.value).toBe("true");
expect(result.modbus?.metadata).toEqual({
Expand Down
2 changes: 0 additions & 2 deletions decoders/connector/milesight/wts506/v1.0.0/payload.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ describe("Unit tests", () => {
const payloadHex = "01756403671001046871058446050673aa27079292010877c41325";
const result = preparePayload(payloadHex);

console.log("result", result.payload);

test("Output result is type: array", () => {
expect(Array.isArray(result.payload)).toBe(true);
});
Expand Down
1 change: 0 additions & 1 deletion decoders/connector/netvox/r718n325/v1.0.0/payload.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ describe("Port 6, 0x02, unit tests", () => {
});

test("Check variable values", () => {
console.log(result);
expect(result.battery?.value).toBe(3.6);
expect(result.multiplier2?.value).toBe(1);
expect(result.multiplier3?.value).toBe(1);
Expand Down

0 comments on commit 9bc68f6

Please sign in to comment.