Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 49a32bb

Browse files
committed
Add failing test for uppercase copmonent
Currently the compiled result of a template yields a lowercase version while it should keep the original case.
1 parent 9b633dd commit 49a32bb

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var compileTemplate = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('Msg')], 1)},staticRenderFns: [],
2+
components: {
3+
Msg: {
4+
render: h => h('div', ['Hello']),
5+
},
6+
},
7+
};
8+
9+
export default compileTemplateLocalComponent;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<template>
2+
<div>
3+
<Msg></Msg>
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
components: {
10+
Msg: {
11+
render: h => h('div', ['Hello']),
12+
},
13+
},
14+
}
15+
</script>

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function test(name) {
3333
modules: {
3434
generateScopedName: '[name]__[local]'
3535
},
36-
compileTemplate: ['compileTemplate', 'slot', 'table', 'table-n-slot'].indexOf(name) > -1
36+
compileTemplate: ['compileTemplate', 'compileTemplateLocalComponent', 'slot', 'table', 'table-n-slot'].indexOf(name) > -1
3737
})]
3838
}).then(function (bundle) {
3939
var result = bundle.generate({ format: 'es' })

0 commit comments

Comments
 (0)