simple-icons/tests/icons.test.js

13 lines
332 B
JavaScript
Raw Normal View History

const { icons } = require('../_data/simple-icons.json');
const { getIconSlug } = require('../scripts/utils.js');
const testIcon = require('./test-icon.js');
console.warn = () => {};
icons.forEach((icon) => {
const slug = getIconSlug(icon);
const subject = require(`../icons/${slug}.js`);
testIcon(icon, subject, slug);
});