Skip to content

Commit

Permalink
Merge pull request #4 from Automattic/fix/tests-for-react-15
Browse files Browse the repository at this point in the history
Tests: Update for React 15
  • Loading branch information
ockham authored and sirreal committed Dec 6, 2018
1 parent 79a0e9c commit bed6110
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/i18n-calypso/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ describe( 'I18n', function() {
} );

describe( 'with mixed components', function() {
it( 'should handle sprintf and compoment interpolation together', function() {
it( 'should handle sprintf and component interpolation together', function() {
var input = React.DOM.input(),
expectedResultString = '<span><span>foo </span><input/><span> bar</span></span>',
expectedResultString = '<span>foo <input/> bar</span>',
placeholder = 'bar',
translatedComponent = translate( 'foo {{ input /}} %(placeholder)s', {
components: {
Expand All @@ -154,7 +154,7 @@ describe( 'I18n', function() {
} ),
instance = React.createElement('span', null, translatedComponent);

assert.equal( expectedResultString, stripReactAttributes( ReactDomServer.renderToString( instance ) ) );
assert.equal( expectedResultString, stripReactAttributes( ReactDomServer.renderToStaticMarkup( instance ) ) );
} );
} );
} );
Expand Down

0 comments on commit bed6110

Please sign in to comment.