Skip to content

Commit b15e9bb

Browse files
committed
fix: fix prepending vm eating adjacent braces
close #14
1 parent 5995d04 commit b15e9bb

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

test.js

+11
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,14 @@ test('trailing function comma', () => {
8787
vm.$el.click()
8888
expect(spy).toHaveBeenCalled()
8989
})
90+
91+
test('v-model code', () => {
92+
const vm = new Vue({
93+
...compileAsFunctions(`
94+
<input v-model="text" />
95+
`),
96+
data: {
97+
text: 'foo'
98+
}
99+
}).$mount()
100+
})

0 commit comments

Comments
 (0)