fix: missing key error in html-to-react.spec.tsx

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-04-12 18:42:24 +02:00
parent 391559bec4
commit 8402ef13f3

View file

@ -34,7 +34,7 @@ describe('HTML to React', () => {
parserOptions={{
transform: () => {
transformerVisited = true
return <p>Hijacked!</p>
return <p key={1}>Hijacked!</p>
},
preprocessNodes: (document) => {
preprocessNodesVisited = true