From 4a7a504e2684aee74b0074e415584733eaa3781b Mon Sep 17 00:00:00 2001 From: "Alex.hxy" <1872591453@qq.com> Date: Mon, 18 Nov 2024 11:25:42 +0800 Subject: [PATCH] feat(empty): v14 --- src/packages/empty/__test__/empty.spec.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packages/empty/__test__/empty.spec.tsx b/src/packages/empty/__test__/empty.spec.tsx index 857e272fb4..3f27c2685d 100644 --- a/src/packages/empty/__test__/empty.spec.tsx +++ b/src/packages/empty/__test__/empty.spec.tsx @@ -31,9 +31,9 @@ test('should render actions correctly', () => { actions={[{ text: '操作1' }, { text: '操作2' }]} /> ) - expect(container.querySelector('.nut-empty-actions')).toBeTruthy() + expect(container.querySelector('.nut-empty-actions-base')).toBeTruthy() expect( - container.querySelectorAll('.nut-empty-actions .nut-button').length + container.querySelectorAll('.nut-empty-actions-base .nut-button').length ).toEqual(2) }) test('should render custom image correctly', () => {