import { getCustomIcon } from '../lib'; const svg = '' describe('Testing getCustomIcon', () => { test('CustomIconLoader', async() => { const result = await getCustomIcon(() => svg, 'a', 'b') expect(svg).toEqual(result); }); test('CustomIconLoader with transform', async() => { const result = await getCustomIcon(() => svg, 'a', 'b', (icon) => { return icon.replace(' -1).toBeTruthy(); expect(result && result.indexOf('height="1em"') > -1).toBeTruthy(); }); });