From 82ea0aa761e9e719b0850c1d85c251d9393e403e Mon Sep 17 00:00:00 2001 From: Vic Willyams Date: Wed, 23 Oct 2024 16:24:10 -0500 Subject: [PATCH] more syntax goofing, should really figure out local test runs --- tests/lib/rules/no-multi-comp.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/lib/rules/no-multi-comp.js b/tests/lib/rules/no-multi-comp.js index 391fc0ee93..bdc5512746 100644 --- a/tests/lib/rules/no-multi-comp.js +++ b/tests/lib/rules/no-multi-comp.js @@ -92,7 +92,7 @@ const EXPORT_TYPES_VALID = [ (compOne, compOneName, compTwo, compTwoName) => ` ${compOne(compOneName)} ${compTwo(compTwoName)} - export ${compOneName}`, // export, post declaration + export { ${compOneName} }`, // export, post declaration (compOne, compOneName, compTwo, compTwoName) => ` ${compOne(compOneName)} ${compTwo(compTwoName)} @@ -134,12 +134,16 @@ const EXPORT_TYPES_INVALID = [ ${compOne(compOneName)} ${compTwo(compTwoName)} export default ${compOneName} - export ${compTwoName}`, // default export, post declaration + export { ${compTwoName} }`, // default export, post declaration (compOne, compOneName, compTwo, compTwoName) => ` ${compOne(compOneName)} ${compTwo(compTwoName)} - export ${compOneName} - export ${compTwoName}`, // export, post declaration + export { ${compOneName} } + export { ${compTwoName} }`, // export, post declaration + (compOne, compOneName, compTwo, compTwoName) => ` + ${compOne(compOneName)} + ${compTwo(compTwoName)} + export { ${compOneName}, ${compTwoName} }`, // export, post declaration (compOne, compOneName, compTwo, compTwoName) => ` ${compOne(compOneName)} ${compTwo(compTwoName)}