import { FileSystemIconLoader } from '../lib'; describe('Testing FileSystemIconLoader', () => { test('FileSystemIconLoader', async () => { const result = await FileSystemIconLoader(__dirname + '/fixtures')( 'circle' ); expect(result && result.indexOf('svg') > -1).toBeTruthy(); }); test('FileSystemIconLoader with transform', async () => { const result = await FileSystemIconLoader( __dirname + '/fixtures', (icon) => { return icon.replace(' -1).toBeTruthy(); expect(result && result.indexOf('height="1em"') > -1).toBeTruthy(); }); });