Skip to content

Commit 2ceb8d2

Browse files
committed
test(heuristic-table): add empty table scenario
1 parent 2f343e1 commit 2ceb8d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/heuristic-table-plugin/src/helpers/__tests__/createRenderTree.test.ts

+7
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ function root(children: TableRoot['children']): TableRoot {
4747
}
4848

4949
describe('createRenderTree', () => {
50+
it('should handle empty table layout', () => {
51+
expect(
52+
makeRenderTree('<table><tr><td></td></tr></table>', [0])
53+
).toMatchObject({
54+
type: 'root'
55+
});
56+
});
5057
it('should handle simple table layout', () => {
5158
expect(
5259
makeRenderTree(

0 commit comments

Comments
 (0)