diff --git a/components/alert/__tests__/__snapshots__/demo.test.js.snap b/components/alert/__tests__/__snapshots__/demo.test.js.snap index 43f07c28d..55b6069b1 100644 --- a/components/alert/__tests__/__snapshots__/demo.test.js.snap +++ b/components/alert/__tests__/__snapshots__/demo.test.js.snap @@ -2,18 +2,10 @@ exports[`renders ./antdv-demo/docs/alert/demo/banner.md correctly 1`] = `
-
Warning text

-
Very long warning text warning text text text text text text text

+
Warning text

+
Very long warning text warning text text text text text text text

Warning text without icon

-
Error text
+
Error text
`; @@ -21,12 +13,8 @@ exports[`renders ./antdv-demo/docs/alert/demo/basic.md correctly 1`] = `
-
Warning Text Warning Text Warning TextW arning Text Warning Text Warning TextWarning Text
-
Error TextError Description Error Description Error Description Error Description Error Description Error Description
+
Warning Text Warning Text Warning TextW arning Text Warning Text Warning TextWarning Text
+
Error TextError Description Error Description Error Description Error Description Error Description Error Description
`; @@ -35,14 +23,14 @@ exports[`renders ./antdv-demo/docs/alert/demo/close-text.md correctly 1`] = `
showIcon = false
-
Success Tips
-
Informational Notes
-
Warning
-
Error
-
Success TipsDetailed description and advices about successful copywriting.
-
Informational NotesAdditional description and informations about copywriting.
-
WarningThis is a warning notice about copywriting.
-
ErrorThis is an error message about copywriting.
+
Success Tips
+
Informational Notes
+
Warning
+
Error
+
Success TipsDetailed description and advices about successful copywriting.
+
Informational NotesAdditional description and informations about copywriting.
+
WarningThis is a warning notice about copywriting.
+
ErrorThis is an error message about copywriting.
`; @@ -59,42 +47,20 @@ exports[`renders ./antdv-demo/docs/alert/demo/description.md correctly 1`] = ` exports[`renders ./antdv-demo/docs/alert/demo/icon.md correctly 1`] = `
-
Success Tips
-
Informational Notes
-
Warning
-
Error
-
Success TipsDetailed description and advices about successful copywriting.
-
Informational NotesAdditional description and informations about copywriting.
-
WarningThis is a warning notice about copywriting.
-
ErrorThis is an error message about copywriting.
+
Success Tips
+
Informational Notes
+
Warning
+
Error
+
Success TipsDetailed description and advices about successful copywriting.
+
Informational NotesAdditional description and informations about copywriting.
+
WarningThis is a warning notice about copywriting.
+
ErrorThis is an error message about copywriting.
`; exports[`renders ./antdv-demo/docs/alert/demo/smooth-closed.md correctly 1`] = `
-
Alert Message Text
+
Alert Message Text
`; diff --git a/components/message/__tests__/index.test.js b/components/message/__tests__/index.test.js index 55a5aa966..1510dadab 100644 --- a/components/message/__tests__/index.test.js +++ b/components/message/__tests__/index.test.js @@ -1,7 +1,7 @@ import { mount } from '@vue/test-utils'; import { asyncExpect } from '@/tests/utils'; import message from '..'; -import Icon from '../../icon'; +import SmileOutlined from '@ant-design/icons-vue/SmileOutlined'; describe('message', () => { beforeEach(() => { @@ -129,9 +129,9 @@ describe('message', () => { }, 0); }); it('should allow custom icon', async () => { - message.open({ content: 'Message', icon: h => }); // eslint-disable-line + message.open({ content: 'Message', icon: h => }); // eslint-disable-line await asyncExpect(() => { - expect(document.querySelectorAll('.anticon-smile-o').length).toBe(1); + expect(document.querySelectorAll('.anticon-smile').length).toBe(1); }, 0); }); diff --git a/components/modal/__tests__/__snapshots__/Modal.test.js.snap b/components/modal/__tests__/__snapshots__/Modal.test.js.snap index 9279fee03..684da3112 100644 --- a/components/modal/__tests__/__snapshots__/Modal.test.js.snap +++ b/components/modal/__tests__/__snapshots__/Modal.test.js.snap @@ -9,7 +9,7 @@ exports[`Modal render correctly 1`] = `