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) {
cbSuccess?.call(null);
cbSuccess?.call(null, { append });
} else {
allResult = singleResult;

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

Loading…
Cancel
Save