aboutsummaryrefslogtreecommitdiff
path: root/packages/web-util
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-12-20 15:27:44 -0300
committerSebastian <sebasjm@gmail.com>2022-12-20 15:27:44 -0300
commit1500c91f36da96226af1226c10bdd83c55c92c23 (patch)
treefdc693062650408900d6232c9a5f2924a2b31362 /packages/web-util
parenta160f3151440106f5dcee11e2c3af2a4d8ed036e (diff)
context is optional
Diffstat (limited to 'packages/web-util')
-rw-r--r--packages/web-util/src/tests/hook.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/web-util/src/tests/hook.ts b/packages/web-util/src/tests/hook.ts
index a4938f3f9..0ec47f252 100644
--- a/packages/web-util/src/tests/hook.ts
+++ b/packages/web-util/src/tests/hook.ts
@@ -80,7 +80,7 @@ const isNode = typeof window === "undefined";
export function renderNodeOrBrowser(
Component: any,
args: any,
- Context: any,
+ Context?: any,
): void {
const vdom = !Context
? create(Component, args)
@@ -91,7 +91,6 @@ export function renderNodeOrBrowser(
if (!isNode) {
document.body.appendChild(parentElement);
}
-
// renderIntoDom works also in nodejs
// if the VirtualDOM is composed only by functional components
// then no called is going to be made to the DOM api.