We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51aa3e5 commit 8ef603bCopy full SHA for 8ef603b
test/unit/modules/compiler/parser.spec.js
@@ -120,6 +120,11 @@ describe('parser', () => {
120
expect('Cannot use v-for on stateful component root element').toHaveBeenWarned()
121
})
122
123
+ it('warn <template> key', () => {
124
+ parse('<div><template v-for="i in 10" :key="i"></template></div>', baseOptions)
125
+ expect('<template> cannot be keyed').toHaveBeenWarned()
126
+ })
127
+
128
it('v-pre directive', () => {
129
const ast = parse('<div v-pre id="message1"><p>{{msg}}</p></div>', baseOptions)
130
expect(ast.pre).toBe(true)
0 commit comments