Form submission #837
Annotations
2 errors and 2 warnings
Run test suite:
packages/forms/src/services/submit-form.test.ts#L76
AssertionError: expected { success: true, data: { …(2) } } to deeply equal { success: false, …(1) }
- Expected
+ Received
Object {
- "error": "Session is not complete",
- "success": false,
+ "data": Object {
+ "session": Object {
+ "data": Object {
+ "errors": Object {},
+ "values": Object {},
+ },
+ "form": Object {
+ "outputs": Array [],
+ "patterns": Object {
+ "element-1": Object {
+ "data": Object {
+ "initial": "",
+ "label": "Pattern 1",
+ "maxLength": 128,
+ "required": true,
+ },
+ "id": "element-1",
+ "type": "input",
+ },
+ "page-1": Object {
+ "data": Object {
+ "patterns": Array [
+ "element-1",
+ "element-2",
+ ],
+ "title": "Page 1",
+ },
+ "id": "page-1",
+ "type": "page",
+ },
+ "root": Object {
+ "data": Object {
+ "pages": Array [
+ "page-1",
+ ],
+ },
+ "id": "root",
+ "type": "page-set",
+ },
+ },
+ "root": "root",
+ "summary": Object {
+ "description": "Test description",
+ "title": "Test form",
+ },
+ },
+ },
+ "sessionId": "a88d7ca9-ae9a-426a-9e68-634e00119ca0",
+ },
+ "success": true,
}
❯ src/services/submit-form.test.ts:76:20
|
Run test suite
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Read node version from `.nvmrc` file
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Loading