mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
test(components): [alert] change test case to match description (#14551)
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user