prop-types(tests,code-style): fix missing semicolon, unexpected spaces and trailing comma

This commit is contained in:
Raito Bezarius
2016-04-05 22:01:37 +02:00
parent c291f8a81e
commit a98e2cb8b1
@@ -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'));
});
});