mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-12-26 01:13:41 +02:00
20 lines
456 B
JavaScript
20 lines
456 B
JavaScript
|
import { exec } from 'uvu';
|
||
|
import { testIcon } from './test-icon.js';
|
||
|
import { getIconSlug, getIconsData } from '../scripts/utils.js';
|
||
|
(async () => {
|
||
|
console.warn = () => {};
|
||
|
|
||
|
const icons = await getIconsData();
|
||
|
|
||
|
const tests = icons.map(async (icon) => {
|
||
|
const slug = getIconSlug(icon);
|
||
|
const { default: subject } = await import(`../icons/${slug}.js`);
|
||
|
|
||
|
testIcon(icon, subject, slug);
|
||
|
});
|
||
|
|
||
|
await Promise.all(tests);
|
||
|
|
||
|
exec();
|
||
|
})();
|