Skip to content

Commit d5daa95

Browse files
test(html-to-react): add case that empty string returns empty array
1 parent 7f61f97 commit d5daa95

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/html-to-react.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ describe('html-to-react', () => {
2727
});
2828
});
2929

30+
it('converts empty string to empty array', () => {
31+
assert.deepEqual(parse(''), []);
32+
});
33+
3034
it('returns string if it cannot be parsed as HTML', () => {
3135
assert.strictEqual(parse('foo'), 'foo');
3236
});

0 commit comments

Comments
 (0)