simple-icons/tests/index.test.js

20 lines
441 B
JavaScript
Raw Normal View History

import {
getIconsData,
getIconSlug,
slugToVariableName,
} from '../scripts/utils.js';
import * as simpleIcons from '../index.mjs';
import { testIcon } from './test-icon.js';
(async () => {
const icons = await getIconsData();
icons.map((icon) => {
const slug = getIconSlug(icon);
const variableName = slugToVariableName(slug);
const subject = simpleIcons[variableName];
testIcon(icon, subject, slug);
});
})();