react-native/Libraries/StyleSheet/__tests__
Janic Duplessis 0ed31eb3d6 BREAKING - Improve JS transform validation, add tests
Summary:
This improves JS validations of the transform object and makes it a bit stricter (hence the breaking change). When moving transform objects parsing to native (#10658) the validations got out of sync a bit, this makes sure JS validations are the same or stricter than the native ones to make sure we get consistent errors across platforms.

See #12110 for an example of an error that now gets caught by JS validations.

Also added snapshot tests for the errors to make sure `processTransform` throws when passing invalid values. It only tests the validation since the object parsing is now done natively for iOS and Android.

**Test plan**
Test that there are no errors in UIExplorer
Run new unit tests
Closes https://github.com/facebook/react-native/pull/12115

Differential Revision: D4488933

Pulled By: mkonicek

fbshipit-source-id: a714e6175b2892284a44c870506165099efec1ed
2017-02-02 06:28:31 -08:00
..
__snapshots__ BREAKING - Improve JS transform validation, add tests 2017-02-02 06:28:31 -08:00
flattenStyle-test.js Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00
normalizeColor-test.js Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00
processColor-test.js re-enable and fix tests 2016-09-03 01:13:37 -07:00
processTransform-test.js BREAKING - Improve JS transform validation, add tests 2017-02-02 06:28:31 -08:00
setNormalizedColorAlpha-test.js Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00