Skip to content

Code Refactoring & Fixes #252

Code Refactoring & Fixes

Code Refactoring & Fixes #252

Triggered via push June 24, 2024 21:09
Status Failure
Total duration 1m 23s
Artifacts

main.yml

on: push
Matrix: client
Matrix: server
Matrix: shared
Fit to window
Zoom out
Zoom in

Annotations

11 errors
server (ubuntu-latest, code/server)
Process completed with exit code 1.
tests/editor/fugue/fugue.test.ts > Fugue > should delete values locally: code/client/tests/editor/fugue/fugue.test.ts#L79
AssertionError: expected [ { type: 'delete', …(2) } ] to have a length of 2 but got 1 - Expected + Received - 2 + 1 ❯ tests/editor/fugue/fugue.test.ts:79:24
tests/editor/fugue/fugue.test.ts > Fugue > should update inline style of node locally: code/client/tests/editor/fugue/fugue.test.ts#L118
AssertionError: expected [] to have a length of 1 but got +0 - Expected + Received - 1 + 0 ❯ tests/editor/fugue/fugue.test.ts:118:24
tests/editor/fugue/fugue.test.ts > Fugue > should return the nodes in the given selection: code/client/tests/editor/fugue/fugue.test.ts#L182
AssertionError: expected [ { id: { …(2) }, value: 'b', …(7) } ] to have a length of 2 but got 1 - Expected + Received - 2 + 1 ❯ tests/editor/fugue/fugue.test.ts:182:19
tests/editor/fugue/fugue.test.ts > Fugue > should return the nodes in the given selections: code/client/tests/editor/fugue/fugue.test.ts#L205
AssertionError: expected 'c' to deeply equal 'bc' - Expected + Received - bc + c ❯ tests/editor/fugue/fugue.test.ts:205:53
tests/editor/fugue/fugue.test.ts > Fugue > should return all nodes until the given separator: code/client/tests/editor/fugue/fugue.test.ts#L229
AssertionError: expected [ …(3) ] to have a length of 4 but got 3 - Expected + Received - 4 + 3 ❯ tests/editor/fugue/fugue.test.ts:229:19
tests/editor/fugue/fugue.test.ts > Fugue > should delete a word by cursor: code/client/tests/editor/fugue/fugue.test.ts#L253
AssertionError: expected [ { type: 'delete', …(2) }, …(1) ] to have a length of 3 but got 2 - Expected + Received - 3 + 2 ❯ tests/editor/fugue/fugue.test.ts:253:24
tests/editor/slate/toSlate.test.ts > toSlate > should return descendants based on fugue tree: code/client/tests/editor/slate/toSlate.test.ts#L42
AssertionError: expected [ { type: 'heading-one', …(1) }, …(1) ] to deeply equal [ { type: 'heading-one', …(1) }, …(1) ] - Expected + Received Array [ Object { "children": Array [ Object { - "bold": true, - "text": "a", - }, - Object { - "text": "bc", + "text": "abc", }, ], "type": "heading-one", }, Object { "children": Array [ Object { "text": "defg", }, ], "type": "list-item", }, ] ❯ tests/editor/slate/toSlate.test.ts:42:25
tests/editor/domain/document/inputOperations.test.ts > Input Operations > should insert character: code/client/src/domain/editor/fugue/Fugue.ts#L88
TypeError: Cannot read properties of undefined (reading 'rightChildren') ❯ Fugue.getInsertOperation src/domain/editor/fugue/Fugue.ts:88:26 ❯ src/domain/editor/fugue/Fugue.ts:64:30 ❯ Fugue.insertLocal src/domain/editor/fugue/Fugue.ts:62:19 ❯ Object.insertCharacter src/domain/editor/connectors/input/connector.ts:14:30 ❯ tests/editor/domain/document/inputOperations.test.ts:26:21
tests/editor/domain/document/inputOperations.test.ts > Input Operations > should delete character: code/client/src/domain/editor/fugue/Fugue.ts#L88
TypeError: Cannot read properties of undefined (reading 'rightChildren') ❯ Fugue.getInsertOperation src/domain/editor/fugue/Fugue.ts:88:26 ❯ src/domain/editor/fugue/Fugue.ts:64:30 ❯ Fugue.insertLocal src/domain/editor/fugue/Fugue.ts:62:19 ❯ Object.insertCharacter src/domain/editor/connectors/input/connector.ts:14:30 ❯ tests/editor/domain/document/inputOperations.test.ts:47:21
tests/editor/domain/document/inputOperations.test.ts > Input Operations > should delete by selection: code/client/src/domain/editor/fugue/Fugue.ts#L88
TypeError: Cannot read properties of undefined (reading 'rightChildren') ❯ Fugue.getInsertOperation src/domain/editor/fugue/Fugue.ts:88:26 ❯ src/domain/editor/fugue/Fugue.ts:64:30 ❯ Fugue.insertLocal src/domain/editor/fugue/Fugue.ts:62:19 ❯ Object.insertCharacter src/domain/editor/connectors/input/connector.ts:14:30 ❯ tests/editor/domain/document/inputOperations.test.ts:61:21