fix test case for rendering text node number 0

This commit is contained in:
Cheng Lou
2013-08-16 10:46:58 -04:00
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');
});