mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add unit test: should generate simple markup for attribute with > symbol
This commit is contained in:
@@ -67,6 +67,16 @@ describe('ReactServerRendering', function() {
|
||||
);
|
||||
});
|
||||
|
||||
it('should generate simple markup for attribute with `>` symbol', function() {
|
||||
var response = ReactServerRendering.renderToString(
|
||||
<img data-attr=">" />
|
||||
);
|
||||
expect(response).toMatch(
|
||||
'<img data-attr=">" ' + ID_ATTRIBUTE_NAME + '="[^"]+" ' +
|
||||
ReactMarkupChecksum.CHECKSUM_ATTR_NAME + '="[^"]+"/>'
|
||||
);
|
||||
});
|
||||
|
||||
it('should not register event listeners', function() {
|
||||
var EventPluginHub = require('EventPluginHub');
|
||||
var cb = mocks.getMockFunction();
|
||||
|
||||
Reference in New Issue
Block a user