]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
test(compiler-vapor): fix v-for test (#13347)
authorzhiyuanzmj <260480378@qq.com>
Mon, 19 May 2025 03:42:54 +0000 (11:42 +0800)
committerGitHub <noreply@github.com>
Mon, 19 May 2025 03:42:54 +0000 (11:42 +0800)
packages/compiler-vapor/__tests__/transforms/vFor.spec.ts

index 47a110fdba3f151c4919f39fefa42ed03eb96178..d22981c1e3008b851318d78040034b339b1b4269 100644 (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,