diff --git a/striker-ui/lib/test_input/testInput.ts b/striker-ui/lib/test_input/testInput.ts index c70bc5e0..7ae1e44d 100644 --- a/striker-ui/lib/test_input/testInput.ts +++ b/striker-ui/lib/test_input/testInput.ts @@ -49,6 +49,7 @@ const testInput: TestInputFunction = ({ Object.keys(testsToRun).every((id: string) => { const { defaults: { + compare: dCompare = null, displayMax: dDisplayMax, displayMin: dDisplayMin, max: dMax = 0, @@ -61,6 +62,7 @@ const testInput: TestInputFunction = ({ tests: requiredTests, } = tests[id]; const { + compare = dCompare, max = dMax, min = dMin, value = dValue, @@ -75,7 +77,7 @@ const testInput: TestInputFunction = ({ onSuccess = dOnSuccess, test, }) => { - const singleResult: boolean = test({ max, min, value }); + const singleResult: boolean = test({ compare, max, min, value }); const { cbFailure, cbSuccess } = setSingleCallback({ onFailure, diff --git a/striker-ui/types/TestInputFunction.ts b/striker-ui/types/TestInputFunction.ts index 36f4a983..69c68bc8 100644 --- a/striker-ui/types/TestInputFunction.ts +++ b/striker-ui/types/TestInputFunction.ts @@ -1,4 +1,5 @@ export type InputTestArgs = { + compare?: InputTestArgs['value']; displayMax?: string; displayMin?: string; max?: bigint | number;