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, keyAlias: undefined,
objectIndexAlias: undefined, objectIndexAlias: undefined,
children: [], children: [],
parseResult: {} as any,
codegenNode: createSequenceExpression([ codegenNode: createSequenceExpression([
createSimpleExpression('foo', false), createSimpleExpression('foo', false),
createSimpleExpression('bar', false) createSimpleExpression('bar', false)

View File

@ -13,7 +13,8 @@ import {
ElementNode, ElementNode,
InterpolationNode, InterpolationNode,
CallExpression, CallExpression,
SequenceExpression SequenceExpression,
ForCodegenNode
} from '../../src/ast' } from '../../src/ast'
import { ErrorCodes } from '../../src/errors' import { ErrorCodes } from '../../src/errors'
import { CompilerOptions, generate } from '../../src' import { CompilerOptions, generate } from '../../src'
@ -48,7 +49,7 @@ function parseWithForTransform(
}) })
return { return {
root: ast, root: ast,
node: ast.children[0] as ForNode node: ast.children[0] as ForNode & { codegenNode: ForCodegenNode }
} }
} }