From 0a822ecd50046d809f6dee155d718b9e0623e316 Mon Sep 17 00:00:00 2001 From: RoXoM Date: Sun, 10 Dec 2023 00:30:27 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E8=A1=A5=E5=85=85=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AMapRangingTool/__tests__/AMapRangingTool.test.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/AMapRangingTool/__tests__/AMapRangingTool.test.tsx b/src/components/AMapRangingTool/__tests__/AMapRangingTool.test.tsx index 97bc3cd..6d630c6 100644 --- a/src/components/AMapRangingTool/__tests__/AMapRangingTool.test.tsx +++ b/src/components/AMapRangingTool/__tests__/AMapRangingTool.test.tsx @@ -67,4 +67,10 @@ describe('AMapRangingTool', () => { expect(mockInstance.off).toBeCalledWith('removenode', onNodeRemoved); expect(mockInstance.off).toBeCalledWith('end', onEnd); }); + + test('disabled component', () => { + render(); + + expect(mockInstance.turnOff).toBeCalled(); + }); });