expect(props.properties[0]).toMatchObject({
key: {
children: [
- `${helperNameMap[CAMELIZE]}(`,
+ `_${helperNameMap[CAMELIZE]}(`,
{ content: `_ctx.foo` },
`(`,
{ content: `_ctx.bar` },
return name
},
helperString(name) {
- return (
- (context.prefixIdentifiers ? `` : `_`) +
- helperNameMap[context.helper(name)]
- )
+ return `_${helperNameMap[context.helper(name)]}`
},
replaceNode(node) {
/* istanbul ignore if */
const dirArgs: ArrayExpression['elements'] = []
const runtime = directiveImportMap.get(dir)
if (runtime) {
- context.helper(runtime)
dirArgs.push(context.helperString(runtime))
} else {
// inject statement for resolving directive