fix test case for rendering text node number 0

This commit is contained in:
Cheng Lou authored and Paul O’Shannessy committed 2013-08-16 13:51:17 -07:00
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');
});