fix(striker-ui): pass append data to input test onSuccess

main
Tsu-ba-me 2 years ago
parent 22a7a0b436
commit 7f5880974e
  1. 2
      striker-ui/lib/test_input/testInput.ts
  2. 2
      striker-ui/types/TestInputFunction.ts

@ -120,7 +120,7 @@ const testInput: TestInputFunction = ({
}); });
if (singleResult) { if (singleResult) {
cbSuccess?.call(null); cbSuccess?.call(null, { append });
} else { } else {
allResult = singleResult; allResult = singleResult;

@ -39,7 +39,7 @@ export type InputTestFailureCallback = (
args: InputTestArgs & CallbackAppendArgs, args: InputTestArgs & CallbackAppendArgs,
) => void; ) => void;
export type InputTestSuccessCallback = () => void; export type InputTestSuccessCallback = (args: CallbackAppendArgs) => void;
export type InputTest = { export type InputTest = {
onFailure?: InputTestFailureCallback; onFailure?: InputTestFailureCallback;

Loading…
Cancel
Save