diff --git a/packages/components/alert/__tests__/alert.test.tsx b/packages/components/alert/__tests__/alert.test.tsx index ed2b6e6943..54e4676f54 100644 --- a/packages/components/alert/__tests__/alert.test.tsx +++ b/packages/components/alert/__tests__/alert.test.tsx @@ -34,7 +34,11 @@ describe('Alert.vue', () => { }) test('title slot', () => { - const wrapper = mount(() => ) + const wrapper = mount(Alert, { + slots: { + title: AXIOM, + }, + }) expect(wrapper.find('.el-alert__title').text()).toEqual(AXIOM) })