Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
mj12albert committed Nov 28, 2023
1 parent 2531a53 commit ab90257
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/mui-base/src/utils/useControllableReducer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ describe('useControllableReducer', () => {
controlledProps: {
make: props.make,
},
componentName: 'TestComponent',
});
return (
<p>
Expand All @@ -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',
);
});

Expand All @@ -174,6 +175,7 @@ describe('useControllableReducer', () => {
controlledProps: {
make: props.make,
},
componentName: 'TestComponent',
});
return (
<p>
Expand All @@ -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',
);
});
});
Expand Down

0 comments on commit ab90257

Please sign in to comment.