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:
parent
f9bcf65af7
commit
63f6e0ceaa
@ -7,7 +7,7 @@ describe('Testing FileSystemIconLoader', () => {
|
|||||||
});
|
});
|
||||||
test('FileSystemIconLoader with transform', async() => {
|
test('FileSystemIconLoader with transform', async() => {
|
||||||
const result = await FileSystemIconLoader(__dirname, (icon) => {
|
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')
|
})('circle')
|
||||||
expect(result && result.indexOf('width="1em"') > -1).toBeTruthy();
|
expect(result && result.indexOf('width="1em"') > -1).toBeTruthy();
|
||||||
expect(result && result.indexOf('height="1em"') > -1).toBeTruthy();
|
expect(result && result.indexOf('height="1em"') > -1).toBeTruthy();
|
||||||
|
@ -9,7 +9,7 @@ describe('Testing getCustomIcon', () => {
|
|||||||
});
|
});
|
||||||
test('CustomIconLoader with transform', async() => {
|
test('CustomIconLoader with transform', async() => {
|
||||||
const result = await getCustomIcon(() => svg, 'a', 'b', (icon) => {
|
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('width="1em"') > -1).toBeTruthy();
|
||||||
expect(result && result.indexOf('height="1em"') > -1).toBeTruthy();
|
expect(result && result.indexOf('height="1em"') > -1).toBeTruthy();
|
||||||
|
Loading…
Reference in New Issue
Block a user