Skip to content

Commit

Permalink
🤡 [open-formulieren/open-forms#4929] Mock retrieving summary of submi…
Browse files Browse the repository at this point in the history
…ssion from API
  • Loading branch information
sergei-maertens committed Jan 8, 2025
1 parent 083942f commit bdf214e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/api-mocks/submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,26 @@ export const mockSubmissionCheckLogicPost = () =>
return HttpResponse.json(responseData, {status: 200});
});

export const mockSubmissionSummaryGet = () =>
http.get(`${BASE_URL}submissions/:uuid/summary`, () =>
HttpResponse.json(
[
{
slug: SUBMISSION_STEP_DETAILS.slug,
name: SUBMISSION_DETAILS.steps[0].name,
data: [
{
name: SUBMISSION_STEP_DETAILS.formStep.configuration.components[0].label,
value: 'Compnent 1 value',
component: SUBMISSION_STEP_DETAILS.formStep.configuration.components[0],
},
],
},
],
{status: 200}
)
);

/**
* Simulate a successful backend processing status without payment.
*/
Expand Down

0 comments on commit bdf214e

Please sign in to comment.