From 75e89de65f3b5652557a91430c803096a86df1dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Tue, 23 Apr 2024 16:35:21 +0800 Subject: [PATCH] =?UTF-8?q?test:=20max=20=20=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/avatar/__test__/index.test.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/avatar/__test__/index.test.jsx b/src/avatar/__test__/index.test.jsx index 9fe3643e4..29f90d43f 100644 --- a/src/avatar/__test__/index.test.jsx +++ b/src/avatar/__test__/index.test.jsx @@ -131,5 +131,7 @@ describe('avatar-group', async () => { )); const avatarList = wrapper.findAllComponents(Avatar); expect(avatarList.length).toBe(2); + expect(avatarList[0].find('img').exists()).toBeTruthy() + expect(avatarList[1].text()).toBe('+4'); }); });