Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMax <max@nextcloud.com>2022-03-16 12:49:18 +0300
committerMax <max@nextcloud.com>2022-03-31 15:29:22 +0300
commit230dba77c564cdafb5c0a32c4b5c000d605ef1c3 (patch)
treeb1da2f2e529a449c329b89b39a2d8f90c742f94c /src/tests
parent15480e0d41d0f5300e215ec7be75e240d1160491 (diff)
fix: table layout to match prosemirror expectations
Signed-off-by: Max <max@nextcloud.com>
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/fixtures/tables/basic.out.html10
-rw-r--r--src/tests/fixtures/tables/handbook.out.html4
-rw-r--r--src/tests/tables.spec.js2
3 files changed, 11 insertions, 5 deletions
diff --git a/src/tests/fixtures/tables/basic.out.html b/src/tests/fixtures/tables/basic.out.html
new file mode 100644
index 000000000..c0b517180
--- /dev/null
+++ b/src/tests/fixtures/tables/basic.out.html
@@ -0,0 +1,10 @@
+<table>
+<tr>
+<th>heading</th>
+<th>other heading</th>
+</tr>
+<tr>
+<td>cell</td>
+<td>other cell</td>
+</tr>
+</table>
diff --git a/src/tests/fixtures/tables/handbook.out.html b/src/tests/fixtures/tables/handbook.out.html
index ad2d26a4a..4d8afad4f 100644
--- a/src/tests/fixtures/tables/handbook.out.html
+++ b/src/tests/fixtures/tables/handbook.out.html
@@ -1,5 +1,4 @@
<table>
-<thead>
<tr>
<th><strong>Heading 0</strong></th>
<th><strong>Heading 1</strong></th>
@@ -7,8 +6,6 @@
<th><strong>Heading 3</strong></th>
<th><strong>Heading 4</strong></th>
</tr>
-</thead>
-<tbody>
<tr>
<td><strong>Letter</strong></td>
<td>a</td>
@@ -30,5 +27,4 @@
<td>9</td>
<td>16</td>
</tr>
-</tbody>
</table>
diff --git a/src/tests/tables.spec.js b/src/tests/tables.spec.js
index 3ff44f1c8..2183e1744 100644
--- a/src/tests/tables.spec.js
+++ b/src/tests/tables.spec.js
@@ -2,7 +2,7 @@ import { createEditor } from './../EditorFactory'
import { createMarkdownSerializer } from './../extensions/Markdown'
import markdownit from './../markdownit'
import input from './fixtures/table.md'
-import output from './fixtures/table.html'
+import output from './fixtures/tables/basic.out.html'
import otherStructure from './fixtures/tableWithOtherStructure.html'
import handbook from './fixtures/tables/handbook.html'
import handbookOut from './fixtures/tables/handbook.out.html'