From 8e6949f84037dc79b736574c4732761a4f613b81 Mon Sep 17 00:00:00 2001 From: Albert Yu Date: Thu, 12 Oct 2023 19:28:26 +0800 Subject: [PATCH] Fix tests --- packages/mui-base/src/utils/useControllableReducer.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mui-base/src/utils/useControllableReducer.test.tsx b/packages/mui-base/src/utils/useControllableReducer.test.tsx index 10f631507d5070..296c2766299a33 100644 --- a/packages/mui-base/src/utils/useControllableReducer.test.tsx +++ b/packages/mui-base/src/utils/useControllableReducer.test.tsx @@ -162,7 +162,7 @@ describe('useControllableReducer', () => { expect(() => { setProps({ make: undefined }); }).to.toErrorDev( - 'MUI: useControllableReducer is changing a controlled prop to be uncontrolled', + 'MUI: A component is changing the controlled state of the "make" prop in TestReducer to be uncontrolled', ); }); @@ -193,7 +193,7 @@ describe('useControllableReducer', () => { expect(() => { setProps({ make: 'Tesla' }); }).to.toErrorDev( - 'MUI: useControllableReducer is changing an uncontrolled prop to be controlled', + 'MUI: A component is changing the uncontrolled state of the "make" prop in TestReducer to be controlled', ); }); });