2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-11 18:02:26 +03:00

fix(react): render words and spaces as single node in react (#226)

* fix(react): render words and spaces as single node in react

* chore: create metal-toys-heal.md
This commit is contained in:
Nikolay Kost
2024-03-27 03:29:16 +02:00
committed by GitHub
parent e875c7832d
commit f1f9eb39da
3 changed files with 30 additions and 14 deletions
+7
View File
@@ -15,6 +15,13 @@ describe('@bbob/react render', () => {
test('render simple text nodes', () => {
const html = render('some example words');
expect(html[0]).toStrictEqual("some example words")
})
test('render simple text nodes with line break', () => {
const html = render(`some
example
words`);
expect(html[0]).toStrictEqual("some")
})
})