mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-01-09 19:51:09 +03:00
7c8146e475
* refactor: reorganize tests, reduce repetition * fix conflicts * fix conflicts * remove unnecessary type checks and use toStrictEqual * move index tests to separate file * test svg values in testIcon
11 lines
306 B
JavaScript
11 lines
306 B
JavaScript
const { icons } = require('../_data/simple-icons.json');
|
|
const { getIconSlug } = require('../scripts/utils.js');
|
|
const testIcon = require('./test-icon.js');
|
|
|
|
icons.forEach((icon) => {
|
|
const slug = getIconSlug(icon);
|
|
const subject = require(`../icons/${slug}.js`);
|
|
|
|
testIcon(icon, subject, slug);
|
|
});
|