diff --git a/tests/button.test.js b/tests/button.test.js index 0bf66a2616..220779e963 100644 --- a/tests/button.test.js +++ b/tests/button.test.js @@ -22,5 +22,13 @@ describe('Button', function() { it('should set the default className to button', () => { expect(buttonNode.className).toBe('ant-btn'); }); + + it('should has a whitespace in two Chinese charactor', () => { + button = TestUtils.renderIntoDocument( + + ); + buttonNode = TestUtils.findRenderedDOMComponentWithTag(button, 'button'); + expect(buttonNode.textContent).toBe('按 钮'); + }); });