Convert simple-icons manual backup from submodule to tracked files

This commit is contained in:
MayaChat
2025-11-24 14:51:23 -05:00
parent 30bbe7a0a4
commit f363db5e47
3467 changed files with 42987 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
// @ts-check
/**
* @file Tests for the index file of npm package.
*/
// The index.mjs file is generated on build before running tests
// @ts-ignore
import * as rawSimpleIcons from '../index.mjs';
import {getIconSlug, getIconsData, slugToVariableName} from '../sdk.mjs';
import {testIcon} from './test-icon.js';
/** @type {{ [key: string]: import('../types.d.ts').SimpleIcon }} */
const simpleIcons = rawSimpleIcons;
for (const iconData of await getIconsData()) {
const slug = getIconSlug(iconData);
const variableName = slugToVariableName(slug);
const subject = simpleIcons[variableName];
testIcon(iconData, subject, slug);
}