diff --git a/packages/mui-material-next/src/InputBase/InputBase.test.tsx b/packages/mui-material-next/src/InputBase/InputBase.test.tsx
index 9211552d31bd9e..c183219600c51f 100644
--- a/packages/mui-material-next/src/InputBase/InputBase.test.tsx
+++ b/packages/mui-material-next/src/InputBase/InputBase.test.tsx
@@ -247,7 +247,8 @@ describe('', () => {
});
it('should inject onBlur and onFocus', () => {
- let injectedProps: any = {};
+ let injectedProps: Record = {};
+
const MyInputBase = React.forwardRef(function MyInputBase(
props: { ownerState: InputBaseOwnerState } & Record,
ref: React.ForwardedRef,
@@ -259,10 +260,8 @@ describe('', () => {
render();
- if (injectedProps) {
- expect(typeof injectedProps.onBlur).to.equal('function');
- expect(typeof injectedProps.onFocus).to.equal('function');
- }
+ expect(typeof injectedProps.onBlur).to.equal('function');
+ expect(typeof injectedProps.onFocus).to.equal('function');
});
describe('target mock implementations', () => {