mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
prop-types(tests,code-style): fix missing semicolon, unexpected spaces and trailing comma
This commit is contained in:
@@ -808,14 +808,14 @@ describe('ReactPropTypes', function() {
|
||||
);
|
||||
typeCheckFail(
|
||||
PropTypes.symbol,
|
||||
function () { },
|
||||
function() { },
|
||||
'Invalid prop `testProp` of type `function` supplied to ' +
|
||||
'`testComponent`, expected `symbol`.'
|
||||
);
|
||||
typeCheckFail(
|
||||
PropTypes.symbol,
|
||||
{
|
||||
'@@toStringTag': 'Katana'
|
||||
'@@toStringTag': 'Katana',
|
||||
},
|
||||
'Invalid prop `testProp` of type `object` supplied to ' +
|
||||
'`testComponent`, expected `symbol`.'
|
||||
@@ -826,8 +826,8 @@ describe('ReactPropTypes', function() {
|
||||
var ES6Symbol = require('es6-symbol/polyfill');
|
||||
var CoreSymbol = require('core-js/library/es6/symbol');
|
||||
|
||||
typeCheckPass(PropTypes.symbol, ES6Symbol('es6-symbol'))
|
||||
typeCheckPass(PropTypes.symbol, CoreSymbol('core-js'))
|
||||
typeCheckPass(PropTypes.symbol, ES6Symbol('es6-symbol'));
|
||||
typeCheckPass(PropTypes.symbol, CoreSymbol('core-js'));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user