Fix tests

This commit is contained in:
Adria Navarro 2024-01-23 16:00:07 +01:00
parent f193c276f6
commit 108508db7e
1 changed files with 5 additions and 1 deletions

View File

@ -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, " ")