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