Upgrades React

This commit is contained in:
Alex Corey
2021-12-06 10:55:00 -05:00
parent 5512b71e16
commit f37b070965
6 changed files with 482 additions and 232 deletions

View File

@@ -103,7 +103,7 @@ function applyDefaultContexts(context) {
return defaultContexts;
}
const newContext = {};
Object.keys(defaultContexts).forEach(key => {
Object.keys(defaultContexts).forEach((key) => {
newContext[key] = {
...defaultContexts[key],
...context[key],
@@ -148,7 +148,7 @@ export function mountWithContexts(node, options = {}) {
export function waitForElement(
wrapper,
selector,
callback = el => el.length === 1
callback = (el) => el.length === 1
) {
const interval = 100;
return new Promise((resolve, reject) => {