|
|
@@ -126,7 +126,21 @@ describe('codegen', () => {
|
|
|
it('generate v-bind directive', () => {
|
|
|
assertCodegen(
|
|
|
'<p v-bind="test"></p>',
|
|
|
- `with(this){return _c('p',_b({},'p',test))}`
|
|
|
+ `with(this){return _c('p',_b({},'p',test,false))}`
|
|
|
+ )
|
|
|
+ })
|
|
|
+
|
|
|
+ it('generate v-bind with prop directive', () => {
|
|
|
+ assertCodegen(
|
|
|
+ '<p v-bind.prop="test"></p>',
|
|
|
+ `with(this){return _c('p',_b({},'p',test,true))}`
|
|
|
+ )
|
|
|
+ })
|
|
|
+
|
|
|
+ it('generate v-bind directive with sync modifier', () => {
|
|
|
+ assertCodegen(
|
|
|
+ '<p v-bind.sync="test"></p>',
|
|
|
+ `with(this){return _c('p',_b({},'p',test,false,true))}`
|
|
|
)
|
|
|
})
|
|
|
|