Fix tests

This commit is contained in:
Adria Navarro 2024-03-15 00:00:17 +01:00
parent bd4b14e995
commit cfb1665ed9
2 changed files with 2 additions and 2 deletions

View File

@ -398,7 +398,7 @@ export function convertToJS(hbs: string) {
prevBlock = block prevBlock = block
const { variable, value } = convertHBSBlock(block, count++) const { variable, value } = convertHBSBlock(block, count++)
variables[variable] = value variables[variable] = value
js += `${stringPart.split("")}\${${variable}}` js += `${[stringPart]}\${${variable}}`
} }
let varBlock = "" let varBlock = ""
for (let [variable, value] of Object.entries(variables)) { for (let [variable, value] of Object.entries(variables)) {

View File

@ -3,7 +3,7 @@ import vm from "vm"
import { processStringSync, encodeJSBinding, setJSRunner } from "../src/index" import { processStringSync, encodeJSBinding, setJSRunner } from "../src/index"
import { UUID_REGEX } from "./constants" import { UUID_REGEX } from "./constants"
const processJS = (js, context?) => { const processJS = (js, context?): any => {
return processStringSync(encodeJSBinding(js), context) return processStringSync(encodeJSBinding(js), context)
} }