From 9bc68f690c569d55303be81a92226d214d63b117 Mon Sep 17 00:00:00 2001 From: Mateus Silva Date: Fri, 7 Jun 2024 17:01:47 -0300 Subject: [PATCH] feat: Remove console.log statements from payload test files --- decoders/connector/dragino/cpl01/v1.0.0/payload.test.ts | 2 -- decoders/connector/milesight/em400-tld/v1.0.0/payload.test.ts | 2 -- decoders/connector/milesight/uc300/v1.0.0/payload.test.ts | 1 - decoders/connector/milesight/wts506/v1.0.0/payload.test.ts | 2 -- decoders/connector/netvox/r718n325/v1.0.0/payload.test.ts | 1 - 5 files changed, 8 deletions(-) diff --git a/decoders/connector/dragino/cpl01/v1.0.0/payload.test.ts b/decoders/connector/dragino/cpl01/v1.0.0/payload.test.ts index 54ae66cd..11c2666c 100644 --- a/decoders/connector/dragino/cpl01/v1.0.0/payload.test.ts +++ b/decoders/connector/dragino/cpl01/v1.0.0/payload.test.ts @@ -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); diff --git a/decoders/connector/milesight/em400-tld/v1.0.0/payload.test.ts b/decoders/connector/milesight/em400-tld/v1.0.0/payload.test.ts index ed120075..c650ae05 100644 --- a/decoders/connector/milesight/em400-tld/v1.0.0/payload.test.ts +++ b/decoders/connector/milesight/em400-tld/v1.0.0/payload.test.ts @@ -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); }); diff --git a/decoders/connector/milesight/uc300/v1.0.0/payload.test.ts b/decoders/connector/milesight/uc300/v1.0.0/payload.test.ts index 25d98732..a6c8fb4f 100644 --- a/decoders/connector/milesight/uc300/v1.0.0/payload.test.ts +++ b/decoders/connector/milesight/uc300/v1.0.0/payload.test.ts @@ -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({ diff --git a/decoders/connector/milesight/wts506/v1.0.0/payload.test.ts b/decoders/connector/milesight/wts506/v1.0.0/payload.test.ts index 2fbd7a98..4ac71588 100644 --- a/decoders/connector/milesight/wts506/v1.0.0/payload.test.ts +++ b/decoders/connector/milesight/wts506/v1.0.0/payload.test.ts @@ -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); }); diff --git a/decoders/connector/netvox/r718n325/v1.0.0/payload.test.ts b/decoders/connector/netvox/r718n325/v1.0.0/payload.test.ts index 97142edd..959b2dec 100644 --- a/decoders/connector/netvox/r718n325/v1.0.0/payload.test.ts +++ b/decoders/connector/netvox/r718n325/v1.0.0/payload.test.ts @@ -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);