|
|
@ -49,6 +49,7 @@ const testInput: TestInputFunction = ({ |
|
|
|
Object.keys(testsToRun).every((id: string) => { |
|
|
|
Object.keys(testsToRun).every((id: string) => { |
|
|
|
const { |
|
|
|
const { |
|
|
|
defaults: { |
|
|
|
defaults: { |
|
|
|
|
|
|
|
compare: dCompare = null, |
|
|
|
displayMax: dDisplayMax, |
|
|
|
displayMax: dDisplayMax, |
|
|
|
displayMin: dDisplayMin, |
|
|
|
displayMin: dDisplayMin, |
|
|
|
max: dMax = 0, |
|
|
|
max: dMax = 0, |
|
|
@ -61,6 +62,7 @@ const testInput: TestInputFunction = ({ |
|
|
|
tests: requiredTests, |
|
|
|
tests: requiredTests, |
|
|
|
} = tests[id]; |
|
|
|
} = tests[id]; |
|
|
|
const { |
|
|
|
const { |
|
|
|
|
|
|
|
compare = dCompare, |
|
|
|
max = dMax, |
|
|
|
max = dMax, |
|
|
|
min = dMin, |
|
|
|
min = dMin, |
|
|
|
value = dValue, |
|
|
|
value = dValue, |
|
|
@ -75,7 +77,7 @@ const testInput: TestInputFunction = ({ |
|
|
|
onSuccess = dOnSuccess, |
|
|
|
onSuccess = dOnSuccess, |
|
|
|
test, |
|
|
|
test, |
|
|
|
}) => { |
|
|
|
}) => { |
|
|
|
const singleResult: boolean = test({ max, min, value }); |
|
|
|
const singleResult: boolean = test({ compare, max, min, value }); |
|
|
|
|
|
|
|
|
|
|
|
const { cbFailure, cbSuccess } = setSingleCallback({ |
|
|
|
const { cbFailure, cbSuccess } = setSingleCallback({ |
|
|
|
onFailure, |
|
|
|
onFailure, |
|
|
|