From a317ef4e7a6b59e22eed8d1c4633cbc460d3766d Mon Sep 17 00:00:00 2001 From: Avan Date: Tue, 23 Jul 2024 21:52:54 +0800 Subject: [PATCH] test: unified class name variable --- .../calendar-picker-view/tests/calendar-picker-view.test.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/calendar-picker-view/tests/calendar-picker-view.test.tsx b/src/components/calendar-picker-view/tests/calendar-picker-view.test.tsx index 37d826643b..35072c4f5f 100644 --- a/src/components/calendar-picker-view/tests/calendar-picker-view.test.tsx +++ b/src/components/calendar-picker-view/tests/calendar-picker-view.test.tsx @@ -169,8 +169,6 @@ describe('Calendar', () => { /> ) - expect( - container.querySelectorAll('.adm-calendar-picker-view-cell') - ).toHaveLength(30) + expect(container.querySelectorAll(`.${classPrefix}-cell`)).toHaveLength(30) }) })