mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 08:05:34 +00:00
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:
parent
2957f734b4
commit
85801ef874
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user