mirror of
https://github.com/iconify/iconify.git
synced 2024-11-10 07:11:00 +00:00
test: remove extra comma on tests for gteCustomIcon
and FileSystemIconLoader
This commit is contained in:
parent
9517d07477
commit
ee7b80db73
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user