test(compiler-vapor): fix v-for test (#13347)
ci / test (push) Has been cancelled Details
ci / continuous-release (push) Has been cancelled Details

This commit is contained in:
zhiyuanzmj 2025-05-19 11:42:54 +08:00 committed by GitHub
parent 5036f91ca4
commit 122f75824d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ describe('compiler: v-for', () => {
`<div v-for="(value, key, index) in list" :key="key">{{ value + key + index }}</div>`,
)
expect(code).matchSnapshot()
expect(ir.block.operation[0]).toMatchObject({
expect(ir.block.dynamic.children[0].operation).toMatchObject({
type: IRNodeTypes.FOR,
source: {
type: NodeTypes.SIMPLE_EXPRESSION,