test(components): [alert] change test case to match description (#14551)

This commit is contained in:
sleepyShen1989 2023-10-15 13:16:50 +08:00 committed by GitHub
parent 0f7f88df81
commit 61b79d4bbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
})