mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-03 03:38:41 +08:00
test(components): [alert] change test case to match description (#14551)
This commit is contained in:
parent
0f7f88df81
commit
61b79d4bbe
@ -34,7 +34,11 @@ describe('Alert.vue', () => {
|
||||
})
|
||||
|
||||
test('title slot', () => {
|
||||
const wrapper = mount(() => <Alert title={AXIOM} />)
|
||||
const wrapper = mount(Alert, {
|
||||
slots: {
|
||||
title: AXIOM,
|
||||
},
|
||||
})
|
||||
expect(wrapper.find('.el-alert__title').text()).toEqual(AXIOM)
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user