Skip to content

Commit 2976ed4

Browse files
committed
test: add failed test for v-for
1 parent b23889d commit 2976ed4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/template.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ describe('transform typescript template', () => {
1414

1515
expect(await fixture(`<div v-for="(item, index) of items" />`))
1616
.toEqual(`<div v-for="(item, index) of items" />`)
17+
18+
expect(await fixture(`<div v-for="({ name = 'Tony' }, index) of items" />`))
19+
.toEqual(`<div v-for="({ name = 'Tony' }, index) of items" />`)
1720
})
1821

1922
it('v-if', async () => {

0 commit comments

Comments
 (0)