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:
@@ -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")
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user