Skip to content

Commit

Permalink
Fix the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
leMaik committed Aug 16, 2019
1 parent efc66d6 commit 78a7319
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ test('ES module index file', (t) => {

for (const iconName of Object.keys(commonjsIconsLight)) {
test(`light icons > ${iconName}`, (t) => {
const renderedIcon = renderer.create(React.createElement(commonjsIconsLight[iconName])).toJSON()
const renderedIcon = renderer.create(
React.createElement(MuiThemeProvider, {},
React.createElement(commonjsIconsLight[iconName])
)
).toJSON()
t.is(renderedIcon.type, 'svg')
t.is(commonjsIconsLight[iconName].muiName, 'SvgIcon')
})
Expand Down

0 comments on commit 78a7319

Please sign in to comment.