chore: fix test types
This commit is contained in:
parent
8cf6b5731d
commit
eb9e089277
@ -235,6 +235,7 @@ describe('compiler: codegen', () => {
|
||||
keyAlias: undefined,
|
||||
objectIndexAlias: undefined,
|
||||
children: [],
|
||||
parseResult: {} as any,
|
||||
codegenNode: createSequenceExpression([
|
||||
createSimpleExpression('foo', false),
|
||||
createSimpleExpression('bar', false)
|
||||
|
@ -13,7 +13,8 @@ import {
|
||||
ElementNode,
|
||||
InterpolationNode,
|
||||
CallExpression,
|
||||
SequenceExpression
|
||||
SequenceExpression,
|
||||
ForCodegenNode
|
||||
} from '../../src/ast'
|
||||
import { ErrorCodes } from '../../src/errors'
|
||||
import { CompilerOptions, generate } from '../../src'
|
||||
@ -48,7 +49,7 @@ function parseWithForTransform(
|
||||
})
|
||||
return {
|
||||
root: ast,
|
||||
node: ast.children[0] as ForNode
|
||||
node: ast.children[0] as ForNode & { codegenNode: ForCodegenNode }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user