Upgrading to react-test-renderer and snapshots; Fixing tests
This commit is contained in:
@ -163459,7 +163459,9 @@ var toRegExp = function toRegExp(keys) {
|
||||
// console.error('Could not convert string to RegEx', key);
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}).filter(function (exp) {
|
||||
return exp;
|
||||
}); // Filter out failed conversions
|
||||
};
|
||||
/**
|
||||
* Detect if an item is in the loading queue. We simply loop all load items to
|
||||
@ -163476,6 +163478,7 @@ var isLoading = function isLoading() {
|
||||
var keys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
||||
if (!load_queue || !keys) return false;
|
||||
var expressions = toRegExp(keys);
|
||||
if (!expressions.length) return false;
|
||||
var queue = Object(_arrays__WEBPACK_IMPORTED_MODULE_0__["indexToArray"])(load_queue);
|
||||
var matches = queue.filter(function (qk) {
|
||||
var matchingExpressions = keys.filter(function (exp) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user