From c81e90eb370b1e7506c0449157ba026c29b34af8 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Mon, 20 May 2024 12:51:48 +0100 Subject: [PATCH] Ensure all `` elements have `tbody`, `thead` or `tfoot` parents The latest Preact release warns about `` elements that have a `` as their direct parent. See https://github.com/preactjs/preact/pull/4375. --- src/components/data/test/TableCell-test.js | 20 ++++++++++++-------- src/components/data/test/TableRow-test.js | 20 ++++++++++++-------- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/src/components/data/test/TableCell-test.js b/src/components/data/test/TableCell-test.js index 0f53d689e..b2d13fddb 100644 --- a/src/components/data/test/TableCell-test.js +++ b/src/components/data/test/TableCell-test.js @@ -13,11 +13,13 @@ describe('TableCell', () => { return mount(
- - - {props.children ?? 'Content'} - - + + + + {props.children ?? 'Content'} + + +
, ); @@ -28,9 +30,11 @@ describe('TableCell', () => { const contentFn = (Component, props = {}) => { return mount( - - - + + + + +
, ); }; diff --git a/src/components/data/test/TableRow-test.js b/src/components/data/test/TableRow-test.js index e5a421caf..7605ff5ac 100644 --- a/src/components/data/test/TableRow-test.js +++ b/src/components/data/test/TableRow-test.js @@ -13,11 +13,13 @@ describe('TableRow', () => { return mount( - - - - - + + + + + + +
Cell content
Cell content
, ); @@ -28,9 +30,11 @@ describe('TableRow', () => { const contentFn = (Component, props = {}) => { return mount( - - - + + + + +
Cell content
Cell content
, ); };