Skip to content

Commit 673dec6

Browse files
committed
fix duplicate slot warning spelling
1 parent b47d773 commit 673dec6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/core/instance/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export function renderMixin (Vue: Class<Component>) {
164164
// warn duplicate slot usage
165165
if (slotNodes && process.env.NODE_ENV !== 'production') {
166166
slotNodes._rendered && warn(
167-
`Duplicate presense of slot "${name}" found in the same render tree ` +
167+
`Duplicate presence of slot "${name}" found in the same render tree ` +
168168
`- this will likely cause render errors.`,
169169
this
170170
)

test/unit/features/component/component-slot.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,8 @@ describe('Component slot', () => {
472472
}
473473
}
474474
}).$mount()
475-
expect('Duplicate presense of slot "default"').toHaveBeenWarned()
476-
expect('Duplicate presense of slot "a"').toHaveBeenWarned()
475+
expect('Duplicate presence of slot "default"').toHaveBeenWarned()
476+
expect('Duplicate presence of slot "a"').toHaveBeenWarned()
477477
})
478478

479479
it('should not warn valid conditional slots', () => {
@@ -492,7 +492,7 @@ describe('Component slot', () => {
492492
}
493493
}
494494
}).$mount()
495-
expect('Duplicate presense of slot "default"').not.toHaveBeenWarned()
495+
expect('Duplicate presence of slot "default"').not.toHaveBeenWarned()
496496
})
497497

498498
// #3518

0 commit comments

Comments
 (0)