Skip to content

Commit

Permalink
fix: fix prepending vm eating adjacent braces
Browse files Browse the repository at this point in the history
close #14
  • Loading branch information
yyx990803 committed Feb 22, 2019
1 parent 5995d04 commit b15e9bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion buble
11 changes: 11 additions & 0 deletions test.js
Expand Up @@ -87,3 +87,14 @@ test('trailing function comma', () => {
vm.$el.click()
expect(spy).toHaveBeenCalled()
})

test('v-model code', () => {
const vm = new Vue({
...compileAsFunctions(`
<input v-model="text" />
`),
data: {
text: 'foo'
}
}).$mount()
})

0 comments on commit b15e9bb

Please sign in to comment.