From b7e5819214da53be72ab9aec78893a7a97030a3d Mon Sep 17 00:00:00 2001 From: mmews Date: Tue, 20 Feb 2024 13:20:53 +0100 Subject: [PATCH] fix test fixture --- .../xt-tests/react/jsx-runtime.js | 5 +++++ .../react-implementations/non-conforming/jsx-runtime.js | 5 +++++ .../react-implementations/valid/jsx-runtime.js | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/tests/org.eclipse.n4js.spec.tests/xt-tests/react/jsx-runtime.js b/tests/org.eclipse.n4js.spec.tests/xt-tests/react/jsx-runtime.js index e4fcfe9322..1ab4e2efab 100644 --- a/tests/org.eclipse.n4js.spec.tests/xt-tests/react/jsx-runtime.js +++ b/tests/org.eclipse.n4js.spec.tests/xt-tests/react/jsx-runtime.js @@ -13,3 +13,8 @@ export function jsx(type, config, maybeKey) { return {type: type, config: config, maybeKey: maybeKey}; } + +//Mock implementation for jsxs +export function jsxs(type, config, maybeKey) { + return {type: type, config: config, maybeKey: maybeKey}; +} diff --git a/tests/org.eclipse.n4js.xpect.tests/react-implementations/non-conforming/jsx-runtime.js b/tests/org.eclipse.n4js.xpect.tests/react-implementations/non-conforming/jsx-runtime.js index e4fcfe9322..1ab4e2efab 100644 --- a/tests/org.eclipse.n4js.xpect.tests/react-implementations/non-conforming/jsx-runtime.js +++ b/tests/org.eclipse.n4js.xpect.tests/react-implementations/non-conforming/jsx-runtime.js @@ -13,3 +13,8 @@ export function jsx(type, config, maybeKey) { return {type: type, config: config, maybeKey: maybeKey}; } + +//Mock implementation for jsxs +export function jsxs(type, config, maybeKey) { + return {type: type, config: config, maybeKey: maybeKey}; +} diff --git a/tests/org.eclipse.n4js.xpect.tests/react-implementations/valid/jsx-runtime.js b/tests/org.eclipse.n4js.xpect.tests/react-implementations/valid/jsx-runtime.js index e4fcfe9322..1ab4e2efab 100644 --- a/tests/org.eclipse.n4js.xpect.tests/react-implementations/valid/jsx-runtime.js +++ b/tests/org.eclipse.n4js.xpect.tests/react-implementations/valid/jsx-runtime.js @@ -13,3 +13,8 @@ export function jsx(type, config, maybeKey) { return {type: type, config: config, maybeKey: maybeKey}; } + +//Mock implementation for jsxs +export function jsxs(type, config, maybeKey) { + return {type: type, config: config, maybeKey: maybeKey}; +}