Remove invariant hack for jest

Reviewed By: vjeux, cpojer

Differential Revision: D2988899

fb-gh-sync-id: e1b2a32a3f665b8f8a246e73e8dd620ff8506ea7
shipit-source-id: e1b2a32a3f665b8f8a246e73e8dd620ff8506ea7
This commit is contained in:
Spencer Ahrens 2016-03-01 13:42:12 -08:00 committed by Facebook Github Bot 6
parent 2957f734b4
commit 85801ef874
1 changed files with 1 additions and 9 deletions

View File

@ -12,17 +12,9 @@
/* eslint no-bitwise: 0 */
'use strict';
var invariant = require('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 = {