chore: fix test types
This commit is contained in:
parent
8cf6b5731d
commit
eb9e089277
@ -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)
|
||||||
|
@ -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 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user