1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-11-26 01:00:27 +02:00
simple-icons/tests/icons-cjs.test.js
Sachin Raja d49492f1ef
switch from uvu to mocha (#7071)
* switch from uvu to mocha

* remove unused import

* custom min reporter

* use constants
2022-01-19 18:23:32 +01:00

17 lines
417 B
JavaScript

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);
})();