From 2fda70fb4a5ee422b33cb0cf090492aa19a4894c Mon Sep 17 00:00:00 2001 From: Cheng Lou Date: Fri, 16 Aug 2013 10:46:58 -0400 Subject: [PATCH] fix test case for rendering text node number 0 --- src/core/__tests__/ReactMultiChildText-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/__tests__/ReactMultiChildText-test.js b/src/core/__tests__/ReactMultiChildText-test.js index 52a4826f0b..e29666a1e2 100644 --- a/src/core/__tests__/ReactMultiChildText-test.js +++ b/src/core/__tests__/ReactMultiChildText-test.js @@ -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'); });