react-native-macos/Libraries/Utilities/__tests__
David Aurelio 2426b3b5ec Prevent tests with invalid UTF-8 from failing when jest reads them from the cache
Summary: The utf-8 test was failing when run from Jest’s cache, because it contained unicode escape sequences for stray high and low surrogates. Somewhere in the process of transpiling, caching on disk, and reading from the cache, those stray surrogates are changed to U+FFFD (REPLACEMENT CHARACTER / �). This diffs changes the method of creating these strings from literals to `String.fromCharCode`, which survives the process as intended.

Reviewed By: bestander

Differential Revision: D3534711

fbshipit-source-id: 365bace77a1f914e6e2fbb3430b3e0ea6cec5e83
2016-07-08 12:35:53 -07:00
..
MatrixMath-test.js Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00
MessageQueue-test.js Update some JS in preparation for some Jest updates. 2016-06-30 01:58:40 -07:00
Platform-test.js Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00
deepFreezeAndThrowOnMutationInDev-test.js Open source jest tests for open source components 2016-06-13 08:28:50 -07:00
groupByEveryN-test.js Open source jest tests for open source components 2016-06-13 08:28:50 -07:00
mapWithSeparator-test.js Optimize and flowify mapWithSeparator 2016-05-26 12:28:55 -07:00
truncate-test.js Open source jest tests for open source components 2016-06-13 08:28:50 -07:00
utf8-test.js Prevent tests with invalid UTF-8 from failing when jest reads them from the cache 2016-07-08 12:35:53 -07:00