@samitouri / QOS-React-2 / commits / 377319b863

Forgotten string

We forgot this `%s` as this was converted.

Sebastian Markbage committed Feb 17, 2015 at 18:26 UTC 377319b86338735fcf23ea854157df3c0ecba9ed
2 files changed +5 -4
src/classic/class/ReactClass.js
+1 -1
@@ -670,7 +670,7 @@ function bindAutoBindMethod(component, method) {
670 false,
671 'bind(): You are binding a component method to the component. ' +
672 'React does this for you automatically in a high-performance ' +
673 - 'way, so you can safely remove this call. See ',
673 + 'way, so you can safely remove this call. See %s',
674 componentName
675 );
676 return boundMethod;
src/classic/class/__tests__/ReactBind-test.js
+4 -3
@@ -137,9 +137,10 @@ describe('autobinding', function() {
137 ReactTestUtils.renderIntoDocument(<TestBindComponent />)
138
139 expect(console.warn.argsForCall.length).toBe(1);
140 - expect(console.warn.argsForCall[0][0]).toContain(
141 - 'You are binding a component method to the component. ' +
142 - 'React does this for you automatically'
140 + expect(console.warn.argsForCall[0][0]).toBe(
141 + 'Warning: bind(): You are binding a component method to the component. ' +
142 + 'React does this for you automatically in a high-performance ' +
143 + 'way, so you can safely remove this call. See TestBindComponent'
144 );
145 });
146