Fixed most tests, history tests missing #233
Annotations
10 errors
tests/editor/slate/operations/history/text-tests/delete-line.test.ts > Undo delete line > No block styles > empty line:
code/client/tests/editor/slate/operations/history/text-tests/delete-line.test.ts#L33
AssertionError: expected [ { type: 'paragraph', …(1) } ] to deeply equal [ { type: 'paragraph', …(1) }, …(1) ]
- Expected
+ Received
Array [
Object {
"children": Array [
Object {
"text": "",
},
],
"type": "paragraph",
},
- Object {
- "children": Array [
- Object {
- "text": "",
- },
- ],
- "type": "paragraph",
- },
]
❯ tests/editor/slate/operations/history/text-tests/delete-line.test.ts:33:29
|
tests/editor/slate/operations/history/text-tests/delete-line.test.ts > Undo delete line > No block styles > text with no inline styles:
code/client/tests/editor/slate/operations/history/text-tests/delete-line.test.ts#L57
AssertionError: expected [ { type: 'paragraph', …(1) } ] to deeply equal [ { type: 'paragraph', …(1) }, …(1) ]
- Expected
+ Received
Array [
Object {
"children": Array [
Object {
- "text": "",
- },
- ],
- "type": "paragraph",
- },
- Object {
- "children": Array [
- Object {
- "text": "Hello",
+ "text": "ello",
},
],
"type": "paragraph",
},
]
❯ tests/editor/slate/operations/history/text-tests/delete-line.test.ts:57:29
|
tests/editor/slate/operations/history/text-tests/delete-line.test.ts > Undo delete line > No block styles > text with inline styles:
code/client/tests/editor/slate/operations/history/text-tests/delete-line.test.ts#L81
AssertionError: expected [ { type: 'paragraph', …(1) } ] to deeply equal [ { type: 'paragraph', …(1) }, …(1) ]
- Expected
+ Received
Array [
Object {
"children": Array [
Object {
- "text": "",
- },
- ],
- "type": "paragraph",
- },
- Object {
- "children": Array [
- Object {
- "text": "Hello",
+ "text": "ello",
},
],
"type": "paragraph",
},
]
❯ tests/editor/slate/operations/history/text-tests/delete-line.test.ts:81:29
|
tests/editor/slate/operations/history/text-tests/insert-text.test.ts > Undo text insertion > Start of the line > No style line > no inline style:
code/client/tests/editor/slate/operations/history/text-tests/insert-text.test.ts#L28
AssertionError: expected [ { type: 'paragraph', …(1) } ] to deeply equal [ { type: 'paragraph', …(1) } ]
- Expected
+ Received
Array [
Object {
"children": Array [
Object {
- "text": "",
+ "text": "cd",
},
],
"type": "paragraph",
},
]
❯ tests/editor/slate/operations/history/text-tests/insert-text.test.ts:28:29
|
tests/editor/slate/operations/history/text-tests/insert-text.test.ts > Undo text insertion > Start of the line > No style line > inline style:
code/client/tests/editor/slate/operations/history/text-tests/insert-text.test.ts#L49
AssertionError: expected [ { type: 'paragraph', …(1) } ] to deeply equal [ { type: 'paragraph', …(1) } ]
- Expected
+ Received
Array [
Object {
"children": Array [
Object {
- "text": "",
+ "bold": true,
+ "text": "cd",
},
],
"type": "paragraph",
},
]
❯ tests/editor/slate/operations/history/text-tests/insert-text.test.ts:49:31
|
tests/editor/slate/operations/history/text-tests/insert-text.test.ts > Undo text insertion > Start of the line > Style line > no inline style:
code/client/tests/editor/slate/operations/history/text-tests/insert-text.test.ts#L70
AssertionError: expected [ { type: 'heading-one', …(1) } ] to deeply equal [ { type: 'heading-one', …(1) } ]
- Expected
+ Received
Array [
Object {
"children": Array [
Object {
- "text": "",
+ "text": "cd",
},
],
"type": "heading-one",
},
]
❯ tests/editor/slate/operations/history/text-tests/insert-text.test.ts:70:31
|
tests/editor/slate/operations/history/text-tests/insert-text.test.ts > Undo text insertion > Start of the line > Style line > inline style:
code/client/tests/editor/slate/operations/history/text-tests/insert-text.test.ts#L95
AssertionError: expected [ { type: 'heading-one', …(1) } ] to deeply equal [ { type: 'heading-one', …(1) } ]
- Expected
+ Received
Array [
Object {
"children": Array [
Object {
- "text": "",
+ "bold": true,
+ "text": "cd",
},
],
"type": "heading-one",
},
]
❯ tests/editor/slate/operations/history/text-tests/insert-text.test.ts:95:31
|
tests/editor/slate/operations/history/text-tests/insert-text.test.ts > Undo text insertion > Middle of the line > No style line > No inline style:
code/client/tests/editor/slate/operations/history/text-tests/insert-text.test.ts#L116
AssertionError: expected [ { type: 'paragraph', …(1) } ] to deeply equal [ { type: 'paragraph', …(1) } ]
- Expected
+ Received
Array [
Object {
"children": Array [
Object {
- "text": "ab",
+ "text": "b",
},
],
"type": "paragraph",
},
]
❯ tests/editor/slate/operations/history/text-tests/insert-text.test.ts:116:31
|
tests/editor/slate/operations/history/text-tests/insert-text.test.ts > Undo text insertion > Middle of the line > No style line > inline style:
code/client/tests/editor/slate/operations/history/text-tests/insert-text.test.ts#L140
AssertionError: expected [ { type: 'paragraph', …(1) } ] to deeply equal [ { type: 'paragraph', …(1) } ]
- Expected
+ Received
Array [
Object {
"children": Array [
Object {
- "text": "ab",
+ "text": "b",
},
],
"type": "paragraph",
},
]
❯ tests/editor/slate/operations/history/text-tests/insert-text.test.ts:140:31
|
tests/editor/slate/operations/history/text-tests/insert-text.test.ts > Undo text insertion > Middle of the line > Style line > no inline style:
code/client/tests/editor/slate/operations/history/text-tests/insert-text.test.ts#L161
AssertionError: expected [ { type: 'heading-one', …(1) } ] to deeply equal [ { type: 'heading-one', …(1) } ]
- Expected
+ Received
Array [
Object {
"children": Array [
Object {
- "text": "ab",
+ "text": "b",
},
],
"type": "heading-one",
},
]
❯ tests/editor/slate/operations/history/text-tests/insert-text.test.ts:161:31
|