fix tests, upcase fix

This commit is contained in:
Tyrel Souza 2023-10-20 22:56:09 -04:00
parent 9b181287eb
commit f3f52474d1
No known key found for this signature in database
GPG Key ID: F3614B02ACBE438E
2 changed files with 4 additions and 5 deletions

View File

@ -119,7 +119,6 @@ function calculateLimitsAndTolerances(calibrationDatum, accuracy) {
gr["Unit"] = unit; gr["Unit"] = unit;
gr["In Range"] = isInRange(reading, gr["Master Value"]) gr["In Range"] = isInRange(reading, gr["Master Value"])
gr["Delta"] = calculateDelta(reading, gr["Low Limit"]) gr["Delta"] = calculateDelta(reading, gr["Low Limit"])
console.log(0)
} }
outOfTolerance(calibrationDatum["Gauge Reading"]) outOfTolerance(calibrationDatum["Gauge Reading"])
} }

View File

@ -49,7 +49,7 @@ describe("Testing Errors", () => {
const e = () => { const e = () => {
ParseTransducer(`|| Transducer Verify Report ||\nTRANSDUCER1\n===============================================================\nTransducer 1 CTS D34-442 115FigNewtons`, 0); 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")) expect(e).toThrowError(Error("Unknown Type of Test, do not know unit: FIGNEWTONS"))
}) })
}) })