mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
fix test case for rendering text node number 0
This commit is contained in:
1 parent
02f618d52c
commit
2fda70fb4a
1 file changed
+2
-2
@@ -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