commit 1500c91f36da96226af1226c10bdd83c55c92c23
parent a160f3151440106f5dcee11e2c3af2a4d8ed036e
Author: Sebastian <sebasjm@gmail.com>
Date: Tue, 20 Dec 2022 15:27:44 -0300
context is optional
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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.