fix tests, upcase fix
This commit is contained in:
parent
9b181287eb
commit
f3f52474d1
@ -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"])
|
||||
}
|
||||
|
@ -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"))
|
||||
|
||||
})
|
||||
})
|
Loading…
Reference in New Issue
Block a user