From ab90257e3d681a89890d827a67baf03a2bf867b2 Mon Sep 17 00:00:00 2001 From: Albert Yu Date: Tue, 28 Nov 2023 20:19:27 +0800 Subject: [PATCH] Update test --- packages/mui-base/src/utils/useControllableReducer.test.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/mui-base/src/utils/useControllableReducer.test.tsx b/packages/mui-base/src/utils/useControllableReducer.test.tsx index ba04914d394f9c..a6cbde41c2b518 100644 --- a/packages/mui-base/src/utils/useControllableReducer.test.tsx +++ b/packages/mui-base/src/utils/useControllableReducer.test.tsx @@ -144,6 +144,7 @@ describe('useControllableReducer', () => { controlledProps: { make: props.make, }, + componentName: 'TestComponent', }); return (

@@ -158,7 +159,7 @@ describe('useControllableReducer', () => { expect(() => { setProps({ make: undefined }); }).to.toErrorDev( - 'useControllableReducer: A component is changing a controlled prop to be uncontrolled: make', + 'useControllableReducer: The TestComponent component is changing a controlled prop to be uncontrolled: make', ); }); @@ -174,6 +175,7 @@ describe('useControllableReducer', () => { controlledProps: { make: props.make, }, + componentName: 'TestComponent', }); return (

@@ -188,7 +190,7 @@ describe('useControllableReducer', () => { expect(() => { setProps({ make: 'Tesla' }); }).to.toErrorDev( - 'useControllableReducer: A component is changing an uncontrolled prop to be controlled: make', + 'useControllableReducer: The TestComponent component is changing an uncontrolled prop to be controlled: make', ); }); });