Upgrade fbjs, fbjs-scripts
Paul O’Shannessy committed
Mar 4, 2016 at 09:56 UTC
4e2a0d14a9f50c0460e880c14254f87d471e8954
3 files changed
+5
-11
package.json
+2
-2
@@ -35,8 +35,8 @@
35
"eslint": "1.10.3",
36
"eslint-plugin-react": "4.1.0",
37
"eslint-plugin-react-internal": "file:eslint-rules",
38
- "fbjs": "^0.6.1",
39
- "fbjs-scripts": "0.6.0-alpha.2",
38
+ "fbjs": "^0.8.0-alpha.2",
39
+ "fbjs-scripts": "^0.6.0-alpha.3",
40
"glob": "^6.0.1",
41
"grunt": "^0.4.5",
42
"grunt-cli": "^0.1.13",
packages/react/package.json
+1
-1
@@ -24,7 +24,7 @@
24
},
25
"dependencies": {
26
"envify": "^3.0.0",
27
- "fbjs": "^0.6.1"
27
+ "fbjs": "^0.8.0-alpha.2"
28
},
29
"browserify": {
30
"transform": [
src/renderers/dom/shared/__tests__/ReactDOMComponent-test.js
+2
-8
@@ -190,7 +190,7 @@ describe('ReactDOMComponent', function() {
190
expect(console.error.calls.length).toBe(2);
191
});
192
193
- it('should warn semi-nicely about NaN in style', function() {
193
+ it('should warn nicely about NaN in style', function() {
194
spyOn(console, 'error');
195
196
var style = {fontSize: NaN};
@@ -198,16 +198,10 @@ describe('ReactDOMComponent', function() {
198
ReactDOM.render(<span style={style}></span>, div);
199
ReactDOM.render(<span style={style}></span>, div);
200
201
- expect(console.error.argsForCall.length).toBe(2);
201
+ expect(console.error.argsForCall.length).toBe(1);
202
expect(console.error.argsForCall[0][0]).toEqual(
203
'Warning: `NaN` is an invalid value for the `fontSize` css style property',
204
);
205
- expect(console.error.argsForCall[1][0]).toEqual(
206
- 'Warning: `span` was passed a style object that has previously been ' +
207
- 'mutated. Mutating `style` is deprecated. Consider cloning it ' +
208
- 'beforehand. Check the `render` using <span>. Previous style: ' +
209
- '{fontSize: NaN}. Mutated style: {fontSize: NaN}.'
210
- );
205
});
206
207
it('should update styles if initially null', function() {