Array instead of string

This commit is contained in:
Adria Navarro 2024-01-22 12:18:53 +01:00
parent 142b404a91
commit 7705397da3
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ describe("manifest", () => {
const example = manifest[collection][func].example const example = manifest[collection][func].example
let [hbs, js] = example.split("->").map(x => x.trim()) let [hbs, js] = example.split("->").map(x => x.trim())
hbs = hbs.replace(/'\[1, 2, 3\]'/, "array") hbs = hbs.replace(/\[1, 2, 3\]/, "array")
expect(await processString(hbs, { array: [1, 2, 3] })).toEqual(js) expect(await processString(hbs, { array: [1, 2, 3] })).toEqual(js)
}) })