From 108508db7ecd39acd0baa3204147ba15b2b4b4f6 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 23 Jan 2024 16:00:07 +0100 Subject: [PATCH] Fix tests --- packages/string-templates/test/manifest.spec.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/string-templates/test/manifest.spec.js b/packages/string-templates/test/manifest.spec.js index f1b4277b79..ccfb14b4e0 100644 --- a/packages/string-templates/test/manifest.spec.js +++ b/packages/string-templates/test/manifest.spec.js @@ -72,7 +72,11 @@ describe("manifest", () => { if ( Array.isArray((parsedExpected = JSON.parse(js.replace(/\'/g, '"')))) ) { - js = parsedExpected.join(",") + if (typeof parsedExpected[0] === "object") { + js = JSON.stringify(parsedExpected) + } else { + js = parsedExpected.join(",") + } } } catch {} result = result.replace(/ /g, " ")