Skip to content

Commit

Permalink
fix duplicate slot warning spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 10, 2016
1 parent b47d773 commit 673dec6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/instance/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export function renderMixin (Vue: Class<Component>) {
// warn duplicate slot usage
if (slotNodes && process.env.NODE_ENV !== 'production') {
slotNodes._rendered && warn(
`Duplicate presense of slot "${name}" found in the same render tree ` +
`Duplicate presence of slot "${name}" found in the same render tree ` +
`- this will likely cause render errors.`,
this
)
Expand Down
6 changes: 3 additions & 3 deletions test/unit/features/component/component-slot.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ describe('Component slot', () => {
}
}
}).$mount()
expect('Duplicate presense of slot "default"').toHaveBeenWarned()
expect('Duplicate presense of slot "a"').toHaveBeenWarned()
expect('Duplicate presence of slot "default"').toHaveBeenWarned()
expect('Duplicate presence of slot "a"').toHaveBeenWarned()
})

it('should not warn valid conditional slots', () => {
Expand All @@ -492,7 +492,7 @@ describe('Component slot', () => {
}
}
}).$mount()
expect('Duplicate presense of slot "default"').not.toHaveBeenWarned()
expect('Duplicate presence of slot "default"').not.toHaveBeenWarned()
})

// #3518
Expand Down

0 comments on commit 673dec6

Please sign in to comment.