@samitouri / QOS-React-2 / commits / 2fda70fb4a

fix test case for rendering text node number 0

Cheng Lou committed Aug 16, 2013 at 10:46 UTC 2fda70fb4a5ee422b33cb0cf090492aa19a4894c
1 file changed +2 -2
src/core/__tests__/ReactMultiChildText-test.js
+2 -2
@@ -147,9 +147,9 @@ describe('ReactMultiChildText', function() {
147 });
148
149 it('should render zero number as text node then switch to spans', function() {
150 - var d = renderSingleTextChild('0');
150 + var d = renderSingleTextChild(0);
151 // false should act exactly as a null child
152 - assertNodeText(d, 0);
152 + assertNodeText(d, '0');
153 d.replaceProps({children: ['hello', 'goodbye']});
154 assertMultiChild(d, 'hello', 'goodbye');
155 });