mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-12-16 01:10:30 +02: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
15 lines
444 B
JavaScript
15 lines
444 B
JavaScript
import simpleIconsData from '../_data/simple-icons.json';
|
|
import utils from '../scripts/utils.js';
|
|
import * as simpleIcons from '../icons.mjs';
|
|
import testIcon from './test-icon.js';
|
|
|
|
const { getIconSlug, slugToVariableName } = utils;
|
|
|
|
simpleIconsData.icons.forEach((icon) => {
|
|
const slug = getIconSlug(icon);
|
|
const variableName = slugToVariableName(slug);
|
|
const subject = simpleIcons[variableName];
|
|
|
|
testIcon(icon, subject, slug);
|
|
});
|