From 9cabf5d6a1a4967dd04302af7b2ef8224f58de5d Mon Sep 17 00:00:00 2001 From: mmews Date: Tue, 20 Feb 2024 11:05:39 +0100 Subject: [PATCH] adjust tests --- .../xt-tests/react_transpile/jsx_fragments.n4jsx.xt | 2 +- .../xt-tests/react_transpile/jsx_transpile_elements.n4jsx.xt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/org.eclipse.n4js.spec.tests/xt-tests/react_transpile/jsx_fragments.n4jsx.xt b/tests/org.eclipse.n4js.spec.tests/xt-tests/react_transpile/jsx_fragments.n4jsx.xt index 33ebe20311..4514eb255b 100644 --- a/tests/org.eclipse.n4js.spec.tests/xt-tests/react_transpile/jsx_fragments.n4jsx.xt +++ b/tests/org.eclipse.n4js.spec.tests/xt-tests/react_transpile/jsx_fragments.n4jsx.xt @@ -56,8 +56,8 @@ let elem: any+ = // Generated by N4JS transpiler; for copyright see original N4JS source file. import 'n4js-runtime' -import * as React from 'react' import {jsx as $jsx} from 'react/jsx-runtime' +import * as React from 'react' console.log($jsx(React.Fragment, { children: $jsx('div', {}) diff --git a/tests/org.eclipse.n4js.spec.tests/xt-tests/react_transpile/jsx_transpile_elements.n4jsx.xt b/tests/org.eclipse.n4js.spec.tests/xt-tests/react_transpile/jsx_transpile_elements.n4jsx.xt index 0d02515809..26a567d1ef 100644 --- a/tests/org.eclipse.n4js.spec.tests/xt-tests/react_transpile/jsx_transpile_elements.n4jsx.xt +++ b/tests/org.eclipse.n4js.spec.tests/xt-tests/react_transpile/jsx_transpile_elements.n4jsx.xt @@ -49,7 +49,7 @@ MyDivWithChildren; // Generated by N4JS transpiler; for copyright see original N4JS source file. import 'n4js-runtime' -import {jsx as $jsx} from 'react/jsx-runtime' +import {jsx as $jsx, jsxs as $jsxs} from 'react/jsx-runtime' const MyDiv = $jsx('div', {}); MyDiv; @@ -61,7 +61,7 @@ const MyDivWithChild = $jsx('div', { children: $jsx('h1', {}) }); MyDivWithChild; -const MyDivWithChildren = $jsx('div', { +const MyDivWithChildren = $jsxs('div', { children: [ $jsx('h1', {}), $jsx('h2', {})