1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00

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
const { variable, value } = convertHBSBlock(block, count++)
variables[variable] = value
js += `${stringPart.split("")}\${${variable}}`
js += `${[stringPart]}\${${variable}}`
}
let varBlock = ""
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 { UUID_REGEX } from "./constants"
const processJS = (js, context?) => {
const processJS = (js, context?): any => {
return processStringSync(encodeJSBinding(js), context)
}