2
0
mirror of https://github.com/iconify/iconify.git synced 2024-09-19 16:59:02 +00:00

test: remove extra comma on tests for gteCustomIcon and FileSystemIconLoader

This commit is contained in:
Joaquín Sánchez Jiménez 2021-12-12 00:29:38 +01:00 committed by Vjacheslav Trushkin
parent f9bcf65af7
commit 63f6e0ceaa
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -9,7 +9,7 @@ describe('Testing getCustomIcon', () => {
});
test('CustomIconLoader with transform', async() => {
const result = await getCustomIcon(() => svg, 'a', 'b', (icon) => {
return icon.replace('<svg ', '<svg width="1em", height="1em" ')
return icon.replace('<svg ', '<svg width="1em" height="1em" ')
})
expect(result && result.indexOf('width="1em"') > -1).toBeTruthy();
expect(result && result.indexOf('height="1em"') > -1).toBeTruthy();