Skip to content

Commit 1b999ca

Browse files
committed
Updated tests in other packages
1 parent 2bbdd6c commit 1b999ca

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

packages/server-util/src/context/__snapshots__/ServerBlockNoteEditor.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`Test ServerBlockNoteEditor > converts to HTML (blocksToFullHTML) 1`] = `"<div class="bn-block-group" data-node-type="blockGroup"><div class="bn-block-outer" data-node-type="blockOuter" data-id="1" data-text-color="yellow" data-background-color="blue"><div class="bn-block" data-node-type="blockContainer" data-id="1" data-text-color="yellow" data-background-color="blue"><div class="bn-block-content" data-content-type="heading" data-text-alignment="right" data-level="2"><h2 class="bn-inline-content"><strong><u>Heading </u></strong><em><s>2</s></em></h2></div><div class="bn-block-group" data-node-type="blockGroup"><div class="bn-block-outer" data-node-type="blockOuter" data-id="2" data-background-color="red"><div class="bn-block" data-node-type="blockContainer" data-id="2" data-background-color="red"><div class="bn-block-content" data-content-type="paragraph"><p class="bn-inline-content">Paragraph</p></div></div></div><div class="bn-block-outer" data-node-type="blockOuter" data-id="3"><div class="bn-block" data-node-type="blockContainer" data-id="3"><div class="bn-block-content" data-content-type="bulletListItem"><p class="bn-inline-content">list item</p></div></div></div></div></div></div><div class="bn-block-outer" data-node-type="blockOuter" data-id="4"><div class="bn-block" data-node-type="blockContainer" data-id="4"><div class="bn-block-content" data-content-type="image" data-name="Example" data-url="exampleURL" data-caption="Caption" data-preview-width="256" data-file-block=""><div class="bn-file-block-content-wrapper" style="width: 256px;"><div class="bn-visual-media-wrapper"><img class="bn-visual-media" src="exampleURL" alt="Example" draggable="false"></div><p class="bn-file-caption">Caption</p></div></div></div></div><div class="bn-block-outer" data-node-type="blockOuter" data-id="5"><div class="bn-block" data-node-type="blockContainer" data-id="5"><div class="bn-block-content" data-content-type="image" data-name="Example" data-url="exampleURL" data-caption="Caption" data-show-preview="false" data-preview-width="256" data-file-block=""><div class="bn-file-block-content-wrapper"><div class="bn-file-name-with-icon"><div class="bn-file-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 8L9.00319 2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8ZM10 4V9H5V20H19V4H10Z"></path></svg></div><p class="bn-file-name">Example</p></div><p class="bn-file-caption">Caption</p></div></div></div></div></div>"`;
3+
exports[`Test ServerBlockNoteEditor > converts to HTML (blocksToFullHTML) 1`] = `"<div class="bn-block-group" data-node-type="blockGroup"><div class="bn-block-outer" data-node-type="blockOuter" data-id="1"><div class="bn-block" data-node-type="blockContainer" data-id="1"><div class="bn-block-content" data-content-type="heading" data-text-color="yellow" data-background-color="blue" data-text-alignment="right" data-level="2"><h2 class="bn-inline-content"><strong><u>Heading </u></strong><em><s>2</s></em></h2></div><div class="bn-block-group" data-node-type="blockGroup"><div class="bn-block-outer" data-node-type="blockOuter" data-id="2"><div class="bn-block" data-node-type="blockContainer" data-id="2"><div class="bn-block-content" data-content-type="paragraph" data-background-color="red"><p class="bn-inline-content">Paragraph</p></div></div></div><div class="bn-block-outer" data-node-type="blockOuter" data-id="3"><div class="bn-block" data-node-type="blockContainer" data-id="3"><div class="bn-block-content" data-content-type="bulletListItem"><p class="bn-inline-content">list item</p></div></div></div></div></div></div><div class="bn-block-outer" data-node-type="blockOuter" data-id="4"><div class="bn-block" data-node-type="blockContainer" data-id="4"><div class="bn-block-content" data-content-type="image" data-name="Example" data-url="exampleURL" data-caption="Caption" data-preview-width="256" data-file-block=""><div class="bn-file-block-content-wrapper" style="width: 256px;"><div class="bn-visual-media-wrapper"><img class="bn-visual-media" src="exampleURL" alt="Example" draggable="false"></div><p class="bn-file-caption">Caption</p></div></div></div></div><div class="bn-block-outer" data-node-type="blockOuter" data-id="5"><div class="bn-block" data-node-type="blockContainer" data-id="5"><div class="bn-block-content" data-content-type="image" data-name="Example" data-url="exampleURL" data-caption="Caption" data-show-preview="false" data-preview-width="256" data-file-block=""><div class="bn-file-block-content-wrapper"><div class="bn-file-name-with-icon"><div class="bn-file-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 8L9.00319 2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8ZM10 4V9H5V20H19V4H10Z"></path></svg></div><p class="bn-file-name">Example</p></div><p class="bn-file-caption">Caption</p></div></div></div></div></div>"`;
44

55
exports[`Test ServerBlockNoteEditor > converts to and from HTML (blocksToHTMLLossy) 1`] = `"<h2 data-text-color="yellow" data-background-color="blue" data-text-alignment="right" data-level="2"><strong><u>Heading </u></strong><em><s>2</s></em></h2><p data-background-color="red">Paragraph</p><ul><li><p>list item</p></li></ul><figure data-name="Example" data-url="exampleURL" data-caption="Caption" data-preview-width="256"><img src="exampleURL" alt="Example" width="256"><figcaption>Caption</figcaption></figure><div data-name="Example" data-url="exampleURL" data-caption="Caption" data-show-preview="false" data-preview-width="256"><a href="exampleURL">Example</a><p>Caption</p></div>"`;
66
@@ -28,10 +28,10 @@ exports[`Test ServerBlockNoteEditor > converts to and from HTML (blocksToHTMLLos
2828
],
2929
"id": "0",
3030
"props": {
31-
"backgroundColor": "default",
31+
"backgroundColor": "blue",
3232
"level": 2,
3333
"textAlignment": "right",
34-
"textColor": "default",
34+
"textColor": "yellow",
3535
},
3636
"type": "heading",
3737
},
@@ -46,7 +46,7 @@ exports[`Test ServerBlockNoteEditor > converts to and from HTML (blocksToHTMLLos
4646
],
4747
"id": "1",
4848
"props": {
49-
"backgroundColor": "default",
49+
"backgroundColor": "red",
5050
"textAlignment": "left",
5151
"textColor": "default",
5252
},

packages/xl-multi-column/src/test/conversions/__snapshots__/nodeConversion.test.ts.snap

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: multi-column-schema > Con
1414
"content": [
1515
{
1616
"attrs": {
17-
"backgroundColor": "default",
1817
"id": "3",
19-
"textColor": "default",
2018
},
2119
"content": [
2220
{
2321
"attrs": {
22+
"backgroundColor": "default",
2423
"textAlignment": "left",
24+
"textColor": "default",
2525
},
2626
"content": [
2727
{
@@ -36,14 +36,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: multi-column-schema > Con
3636
},
3737
{
3838
"attrs": {
39-
"backgroundColor": "default",
4039
"id": "4",
41-
"textColor": "default",
4240
},
4341
"content": [
4442
{
4543
"attrs": {
44+
"backgroundColor": "default",
4645
"textAlignment": "left",
46+
"textColor": "default",
4747
},
4848
"content": [
4949
{
@@ -67,14 +67,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: multi-column-schema > Con
6767
"content": [
6868
{
6969
"attrs": {
70-
"backgroundColor": "default",
7170
"id": "6",
72-
"textColor": "default",
7371
},
7472
"content": [
7573
{
7674
"attrs": {
75+
"backgroundColor": "default",
7776
"textAlignment": "left",
77+
"textColor": "default",
7878
},
7979
"content": [
8080
{
@@ -89,14 +89,14 @@ exports[`Test BlockNote-Prosemirror conversion > Case: multi-column-schema > Con
8989
},
9090
{
9191
"attrs": {
92-
"backgroundColor": "default",
9392
"id": "7",
94-
"textColor": "default",
9593
},
9694
"content": [
9795
{
9896
"attrs": {
97+
"backgroundColor": "default",
9998
"textAlignment": "left",
99+
"textColor": "default",
100100
},
101101
"content": [
102102
{

0 commit comments

Comments
 (0)