From 4204ff0736dc8b0a9e729f30443b0a11ace622a3 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sun, 12 Dec 2021 16:49:31 +0800 Subject: [PATCH] test: update typography test --- components/typography/__tests__/index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/typography/__tests__/index.test.js b/components/typography/__tests__/index.test.js index 92b6f810c..652cb3fd0 100644 --- a/components/typography/__tests__/index.test.js +++ b/components/typography/__tests__/index.test.js @@ -75,7 +75,7 @@ describe('Typography', () => { expect(onEllipsis).toHaveBeenCalledWith(true); onEllipsis.mockReset(); wrapper.setProps({ ellipsis: { rows: 2, onEllipsis } }); - await sleep(100); + await sleep(300); expect(wrapper.text()).toEqual('Bamboo is Little Light Bamboo is Litt...'); expect(onEllipsis).not.toHaveBeenCalled();