Browse Source

chore: fix tag name in compiler/parser/index.js (#9165)

dev
NaotoSuzuki 6 years ago
committed by Evan You
parent
commit
8fccd82569
  1. 2
      src/compiler/parser/index.js
  2. 2
      test/unit/modules/compiler/parser.spec.js

2
src/compiler/parser/index.js

@ -340,7 +340,7 @@ function processKey (el) {
const parent = el.parent const parent = el.parent
if (iterator && iterator === exp && parent && parent.tag === 'transition-group') { if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
warn( warn(
`Do not use v-for index as key on <transtion-group> children, ` + `Do not use v-for index as key on <transition-group> children, ` +
`this is the same as not using keys.` `this is the same as not using keys.`
) )
} }

2
test/unit/modules/compiler/parser.spec.js

@ -250,7 +250,7 @@ describe('parser', () => {
</transition-group> </transition-group>
</div> </div>
`, baseOptions) `, baseOptions)
expect('Do not use v-for index as key on <transtion-group> children').toHaveBeenWarned() expect('Do not use v-for index as key on <transition-group> children').toHaveBeenWarned()
}) })
it('v-pre directive', () => { it('v-pre directive', () => {

Loading…
Cancel
Save