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