import * as React from 'react'; import renderer from 'react-test-renderer'; import MDIcon from '../index'; // const MDIconTypes = [ // 'MandMobile', // 'AntDesign', // 'Entypo', // 'EvilIcons', // 'Feather', // 'FontAwesome', // 'FontAwesome5', // 'Foundation', // 'Ionicons', // 'MaterialCommunityIcons', // 'MaterialIcons', // 'Octicons', // 'SimpleLineIcons', // 'Zocial', // ]; it('render correctly with default', () => { const icon = renderer .create() .toJSON(); expect(icon).toMatchSnapshot(); expect(() => renderer.create()).toThrow(); }); // it('render correctly with vector icon', () => { // const icon = renderer // // @ts-ignore // .create() // .toJSON(); // expect(icon).toMatchSnapshot(); // const notExists = renderer // // @ts-ignore // .create() // .toJSON(); // expect(notExists).toBeNull(); // MDIconTypes.map((key) => { // const _icon = renderer // // @ts-ignore // .create() // .toJSON(); // expect(_icon).toMatchSnapshot(); // }); // });