@@ -32,12 +32,12 @@ describe('compile basic', () => {
32
32
33
33
it ( 'should compile unary tag' , ( ) => {
34
34
const inputCase = compile ( `<div><input><text>abc</text></div>` )
35
- expect ( inputCase . render ) . toMatch ( strToRegExp ( `return _m(0)` ) )
35
+ expect ( inputCase . render ) . toMatch ( strToRegExp ( `return _m(0,false,false )` ) )
36
36
expect ( inputCase . staticRenderFns ) . toMatch ( strToRegExp ( `_c('div',[_c('input'),_c('text',[_v("abc")])])` ) )
37
37
expect ( inputCase . errors ) . toEqual ( [ ] )
38
38
39
39
const imageCase = compile ( `<div><image src="path"><text>abc</text></div>` )
40
- expect ( imageCase . render ) . toMatch ( strToRegExp ( `return _m(0)` ) )
40
+ expect ( imageCase . render ) . toMatch ( strToRegExp ( `return _m(0,false,false )` ) )
41
41
expect ( imageCase . staticRenderFns ) . toMatch ( strToRegExp ( `_c('div',[_c('image',{attrs:{"src":"path"}}),_c('text',[_v("abc")])])` ) )
42
42
expect ( imageCase . errors ) . toEqual ( [ ] )
43
43
@@ -54,7 +54,7 @@ describe('compile basic', () => {
54
54
</div>
55
55
</div>
56
56
` )
57
- expect ( complexCase . render ) . toMatch ( strToRegExp ( `return _m(0)` ) )
57
+ expect ( complexCase . render ) . toMatch ( strToRegExp ( `return _m(0,false,false )` ) )
58
58
expect ( complexCase . staticRenderFns ) . toMatch ( strToRegExp ( `_c('image',{attrs:{"src":"path"}}),_c('image'),_c('div'` ) )
59
59
expect ( complexCase . staticRenderFns ) . toMatch ( strToRegExp ( `_c('div',[_c('embed'),_c('text',[_v("start")]),_c('input',{attrs:{"type":"text"}}),_c('input',{attrs:{"type":"url"}}),_c('text',[_v("end")])]` ) )
60
60
expect ( complexCase . errors ) . toEqual ( [ ] )
0 commit comments