Fix unit tests in open source environment

Summary:**Test plan**

run `npm test`, see all tests pass
Closes https://github.com/facebook/react-native/pull/6243

Differential Revision: D2999993

Pulled By: davidaurelio

fb-gh-sync-id: 54f2d5f9d28a31d132783694133df78370660421
shipit-source-id: 54f2d5f9d28a31d132783694133df78370660421
This commit is contained in:
David Aurelio 2016-03-02 07:06:50 -08:00 коммит произвёл Facebook Github Bot 4
Родитель ab12189f87
Коммит d3f2081d90
2 изменённых файлов: 2 добавлений и 10 удалений

Просмотреть файл

@ -12,17 +12,9 @@
/* eslint no-bitwise: 0 */
'use strict';
var invariant = require('fbjs/lib/invariant');
var normalizeColor = require('normalizeColor');
// TODO(#7644673): fix this hack once github jest actually checks invariants
var invariant = function(condition, message) {
if (!condition) {
var error = new Error(message);
(error: any).framesToPop = 1; // $FlowIssue
throw error;
}
};
type ExtrapolateType = 'extend' | 'identity' | 'clamp';
export type InterpolationConfigType = {

2
Libraries/vendor/core/Map.js поставляемый
Просмотреть файл

@ -19,7 +19,7 @@
*/
var guid = require('guid');
var isNode = require('isNode');
var isNode = require('fbjs/lib/isNode');
var toIterator = require('toIterator');
var _shouldPolyfillES6Collection = require('_shouldPolyfillES6Collection');