Skip to content

Commit 5402f27

Browse files
committed
add test case
1 parent 31fd08f commit 5402f27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: test/unit/modules/compiler/codegen.spec.js

+5
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,11 @@ describe('codegen', () => {
524524
'<div :is="component1"></div>',
525525
`with(this){return _c(component1,{tag:"div"})}`
526526
)
527+
// maybe a component and normalize type should be 1
528+
assertCodegen(
529+
'<div><div is="component1"></div></div>',
530+
`with(this){return _c('div',[_c("component1",{tag:"div"})],1)}`
531+
)
527532
})
528533

529534
it('generate component with inline-template', () => {

0 commit comments

Comments
 (0)