Skip to content

Commit

Permalink
[test] Test if certain Base members are exported from Material UI (#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak authored Feb 14, 2022
1 parent 7cfdd9f commit 18452d2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/mui-material/src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,21 @@ describe('material-ui', () => {
expect(Boolean(MaterialUI[exportKey])).to.equal(true),
);
});

it('should reexport certain members from @mui/base', () => {
const expectedReexports = [
'ClickAwayListener',
'generateUtilityClass',
'generateUtilityClasses',
'NoSsr',
'Portal',
'TextareaAutosize',
'unstable_ClassNameGenerator',
'unstable_composeClasses',
];

const exportedNames = Object.keys(MaterialUI);

expectedReexports.forEach((reexport) => expect(exportedNames).to.contain(reexport));
});
});

0 comments on commit 18452d2

Please sign in to comment.