提交 c3c4384f 编写于 作者: fxy060608's avatar fxy060608

chore(cli): update tests

上级 1402eaa4
...@@ -141,14 +141,14 @@ describe('codegen', () => { ...@@ -141,14 +141,14 @@ describe('codegen', () => {
it('generate v-model directive', () => { it('generate v-model directive', () => {
assertCodegen( assertCodegen(
'<input v-model="test">', '<input v-model="test">',
`with(this){return _c('v-uni-input',{attrs:{"_i":0},model:{value:_$g(0,'v-model'),callback:function(){},expression:"test"}})}` `with(this){return _c('v-uni-input',{attrs:{"_i":0},model:{value:_$g(0,'v-model'),callback:function($$v){$handleVModelEvent(0,$$v)},expression:"test"}})}`
) )
}) })
it('generate multiline v-model directive', () => { it('generate multiline v-model directive', () => {
assertCodegen( assertCodegen(
'<input v-model="\n test \n">', '<input v-model="\n test \n">',
`with(this){return _c('v-uni-input',{attrs:{"_i":0},model:{value:_$g(0,'v-model'),callback:function(){},expression:"\\n test \\n"}})}` `with(this){return _c('v-uni-input',{attrs:{"_i":0},model:{value:_$g(0,'v-model'),callback:function($$v){$handleVModelEvent(0,$$v)},expression:"\\n test \\n"}})}`
) )
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册