Skip to content

Commit 24fcfb5

Browse files
🤡 [open-formulieren/open-forms#4929] Add API endpoint mock for submission completion
This endpoint was not mocked yet, apparently. We can now properly write tests that simulate the submission/completion of a form and the behaviour that happens afterwards.
1 parent d5719a5 commit 24fcfb5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/api-mocks/submissions.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ export const mockSubmissionSummaryGet = () =>
112112
)
113113
);
114114

115+
export const mockSubmissionCompletePost = () =>
116+
http.post(`${BASE_URL}submissions/:uuid/_complete`, () =>
117+
HttpResponse.json({
118+
statusUrl: `${BASE_URL}submissions/${SUBMISSION_DETAILS.id}/super-random-token/status`,
119+
})
120+
);
121+
115122
/**
116123
* Simulate a successful backend processing status without payment.
117124
*/

0 commit comments

Comments
 (0)