Fix tests
This commit is contained in:
parent
bd4b14e995
commit
cfb1665ed9
|
@ -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)) {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue