From f3f52474d19045fdc54991837ff9dd1733df5bdf Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 20 Oct 2023 22:56:09 -0400 Subject: [PATCH] fix tests, upcase fix --- benchtop-fe/src/parsers/Hardware.js | 1 - benchtop-fe/src/parsers/__tests__/parseTransducer.test.js | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/benchtop-fe/src/parsers/Hardware.js b/benchtop-fe/src/parsers/Hardware.js index 8699c18..f9e9b0c 100644 --- a/benchtop-fe/src/parsers/Hardware.js +++ b/benchtop-fe/src/parsers/Hardware.js @@ -119,7 +119,6 @@ function calculateLimitsAndTolerances(calibrationDatum, accuracy) { gr["Unit"] = unit; gr["In Range"] = isInRange(reading, gr["Master Value"]) gr["Delta"] = calculateDelta(reading, gr["Low Limit"]) - console.log(0) } outOfTolerance(calibrationDatum["Gauge Reading"]) } diff --git a/benchtop-fe/src/parsers/__tests__/parseTransducer.test.js b/benchtop-fe/src/parsers/__tests__/parseTransducer.test.js index 5ac944b..153a48b 100644 --- a/benchtop-fe/src/parsers/__tests__/parseTransducer.test.js +++ b/benchtop-fe/src/parsers/__tests__/parseTransducer.test.js @@ -46,10 +46,10 @@ describe("Testing Errors", () => { expect(e).toThrowError(Error("Not a Transducer Verify Report")) }) test("Unknown Unit", () => { - const e = () => { - ParseTransducer(`|| Transducer Verify Report ||\nTRANSDUCER1\n===============================================================\nTransducer 1 CTS D34-442 115FigNewtons`, 0); - } - expect(e).toThrowError(Error("Unknown Type of Test, do not know unit: FigNewtons")) + const e = () => { + ParseTransducer(`|| Transducer Verify Report ||\nTRANSDUCER1\n===============================================================\nTransducer 1 CTS D34-442 115FigNewtons`, 0); + } + expect(e).toThrowError(Error("Unknown Type of Test, do not know unit: FIGNEWTONS")) }) }) \ No newline at end of file