Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit d6eeeb8

Browse files
committed
test: update
1 parent 456b30b commit d6eeeb8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/compiler-vapor/__tests__/transforms/vBind.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ function compileWithVBind(
1919
code: string
2020
} {
2121
const ast = parse(template, { prefixIdentifiers: true, ...options })
22-
2322
const ir = transform(ast, {
2423
nodeTransforms: [transformElement],
2524
directiveTransforms: {
@@ -28,9 +27,7 @@ function compileWithVBind(
2827
prefixIdentifiers: true,
2928
...options,
3029
})
31-
3230
const { code } = generate(ir, { prefixIdentifiers: true, ...options })
33-
3431
return { ir, code }
3532
}
3633

@@ -86,6 +83,7 @@ describe('compiler v-bind', () => {
8683
})
8784

8885
expect(code).matchSnapshot()
86+
expect(code).contains('_setAttr(n1, "id", undefined, _ctx.id)')
8987
})
9088

9189
test('no expression', () => {

0 commit comments

Comments
 (0)