Skip to content

Commit 45ab5fa

Browse files
committed
test(vFor): update test case for invalid source with a single space
1 parent 4ee7f25 commit 45ab5fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compiler-core/__tests__/transforms/vFor.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ describe('compiler: v-for', () => {
304304

305305
test('missing source', () => {
306306
const onError = vi.fn()
307-
parseWithForTransform('<span v-for="item in" />', { onError })
307+
parseWithForTransform('<span v-for="item in " />', { onError })
308308

309309
expect(onError).toHaveBeenCalledTimes(1)
310310
expect(onError).toHaveBeenCalledWith(
@@ -328,7 +328,7 @@ describe('compiler: v-for', () => {
328328

329329
test('missing value', () => {
330330
const onError = vi.fn()
331-
parseWithForTransform('<span v-for="in items" />', { onError })
331+
parseWithForTransform('<span v-for=" in items" />', { onError })
332332

333333
expect(onError).toHaveBeenCalledTimes(1)
334334
expect(onError).toHaveBeenCalledWith(

0 commit comments

Comments
 (0)