Skip to content

Commit

Permalink
test: update cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Sep 16, 2022
1 parent a07a633 commit ac2114b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/compiler-sfc/__tests__/compileScript.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,18 @@ defineExpose({ foo: 123 })
</tempalte>
`)
})

test('v-on contain object', () => {
// should not error
compile(`
<script setup lang="ts">
import { foo } from './foo'
</script>
<template>
<div v-on="{ foo }"></div>
</tempalte>
`)
})
})

describe('inlineTemplate mode', () => {
Expand Down

0 comments on commit ac2114b

Please sign in to comment.