2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-12 21:57:50 +00:00

chore: add missing ;

This commit is contained in:
Joaquín Sánchez Jiménez 2022-02-26 17:20:57 +01:00
parent 1e854f74ee
commit 85d9c1e8b7

View File

@ -8,10 +8,9 @@ const loader: CustomIconLoader = async(name) => {
}
describe('Testing loadIcon', () => {
test('CustomCollection', async () => {
const svg = await loader('circle');
expect(svg).toBeTruthy()
expect(svg).toBeTruthy();
const result = await loadIcon('a', 'circle', {
customCollections: {
'a': {
@ -19,13 +18,13 @@ describe('Testing loadIcon', () => {
},
},
});
expect(result).toBeTruthy()
expect(result).toBeTruthy();
expect(svg).toEqual(result);
});
test('CustomCollection with transform', async () => {
const svg = await loader('circle')
expect(svg).toBeTruthy()
const svg = await loader('circle');
expect(svg).toBeTruthy();
const result = await loadIcon('a', 'circle', {
customCollections: {
'a': {
@ -36,16 +35,16 @@ describe('Testing loadIcon', () => {
transform(icon) {
return icon.replace('<svg ', '<svg width="1em" height="1em" ');
},
}
},
});
expect(result).toBeTruthy()
expect(result).toBeTruthy();
expect(result && result.indexOf('width="1em"') > -1).toBeTruthy();
expect(result && result.indexOf('height="1em"') > -1).toBeTruthy();
});
test('CustomCollection Icon with XML heading', async () => {
const svg = await loader('1f3eb')
expect(svg).toBeTruthy()
const svg = await loader('1f3eb');
expect(svg).toBeTruthy();
// Intercept console.warn
let warned = false;
const warn = console.warn;