mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
fix test case for rendering text node number 0
This commit is contained in:
committed by
Paul O’Shannessy
parent
02f618d52c
commit
2fda70fb4a
@@ -147,9 +147,9 @@ describe('ReactMultiChildText', function() {
|
||||
});
|
||||
|
||||
it('should render zero number as text node then switch to spans', function() {
|
||||
var d = renderSingleTextChild('0');
|
||||
var d = renderSingleTextChild(0);
|
||||
// false should act exactly as a null child
|
||||
assertNodeText(d, 0);
|
||||
assertNodeText(d, '0');
|
||||
d.replaceProps({children: ['hello', 'goodbye']});
|
||||
assertMultiChild(d, 'hello', 'goodbye');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user