chore: fix test types

This commit is contained in:
Evan You 2020-02-03 22:21:45 -05:00
parent 8cf6b5731d
commit eb9e089277
2 changed files with 4 additions and 2 deletions

View File

@ -235,6 +235,7 @@ describe('compiler: codegen', () => {
keyAlias: undefined,
objectIndexAlias: undefined,
children: [],
parseResult: {} as any,
codegenNode: createSequenceExpression([
createSimpleExpression('foo', false),
createSimpleExpression('bar', false)

View File

@ -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 }
}
}