From c3c4384f9f62f2e1e8df6cc41ecc86010fca540c Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Mon, 20 Jan 2020 17:05:59 +0800 Subject: [PATCH] chore(cli): update tests --- .../__tests__/compiler-app-plus.view.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uni-template-compiler/__tests__/compiler-app-plus.view.spec.js b/packages/uni-template-compiler/__tests__/compiler-app-plus.view.spec.js index a5a238df2..f674c7805 100644 --- a/packages/uni-template-compiler/__tests__/compiler-app-plus.view.spec.js +++ b/packages/uni-template-compiler/__tests__/compiler-app-plus.view.spec.js @@ -141,14 +141,14 @@ describe('codegen', () => { it('generate v-model directive', () => { assertCodegen( '', - `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', () => { assertCodegen( '', - `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"}})}` ) }) -- GitLab