Upgrading to react-test-renderer and snapshots; Fixing tests

This commit is contained in:
James Barnsley
2021-03-18 20:52:30 +13:00
parent d222e381eb
commit cbcc79aa64
8 changed files with 578 additions and 117 deletions

View File

@ -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