From 6c979a3c5699f66eeb900f0d4d075f259b5ff645 Mon Sep 17 00:00:00 2001 From: mortalYoung Date: Thu, 23 Jan 2025 17:47:16 +0800 Subject: [PATCH] test(chat): update test --- src/chat/__tests__/message.test.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/chat/__tests__/message.test.tsx b/src/chat/__tests__/message.test.tsx index 1c0168b5f..c88e747dc 100644 --- a/src/chat/__tests__/message.test.tsx +++ b/src/chat/__tests__/message.test.tsx @@ -188,9 +188,7 @@ describe('Test Chat Message', () => { fireEvent.click(ele!); }); expect(onCopy).toBeCalledWith('My Name is dt-react-component'); - - // FIXME:这里应该给 false 表示不支持复制,但是代码里是相反的,最好是反一下 - rerender(); + rerender(); expect(container.querySelector(classNames)).toBeNull(); onCopy.mockRestore();