Files

50 lines
1.6 KiB
TypeScript

import { renderEnterpriseSvgIcon } from '../src/components/EnterpriseSvgIcons';
const testServices = [
'Weekly Chemical Balancing & Skimming',
'Variable Speed Pump & Filter Repair',
'Waterline Tile Cleaning & Calcium Scrub',
'Smartphone Automation & Salt Systems',
'Emergency Green-to-Clean Recovery',
'Paver Patio Installation & Hardscaping',
'Weekly Lawn Mowing & Edging',
'Sprinkler System & Irrigation Repair',
'Tree Trimming & Arborist Care',
'Low-Voltage Landscape Lighting',
'Architectural Shingle Roofing',
'Emergency Storm Tarping & Leak Repair',
'Seamless Gutters & Downspouts',
'Tankless Water Heater Installation',
'Hydro-Jet Sewer Line Cleaning',
'High-Efficiency AC Repair & Freon',
'Gas Furnace Heating Installation',
'Smart Nest Thermostat Setup',
'200A Electrical Service Panel Upgrade',
'Level 2 EV Tesla Charger Station',
'Whole-Home Standby Generator',
'Precision Laser Skin Resurfacing',
'100% Satisfaction Guarantee',
'24/7 Rapid Emergency Dispatch',
'Top Rated 5-Star Reviews',
'Transparent Flat-Rate Pricing',
];
console.log('--- TESTING ENTERPRISE SVG ICON RESOLVER ---');
let allGood = true;
for (const title of testServices) {
const iconElement = renderEnterpriseSvgIcon(title);
if (iconElement && iconElement.type) {
console.log(`✅ RESOLVED: "${title}" -> ${typeof iconElement.type === 'function' ? iconElement.type.name : 'SVG'}`);
} else {
console.error(`❌ FAILED: "${title}" did not return an icon element`);
allGood = false;
}
}
if (allGood) {
console.log('\n🎉 ALL 26 TRADE SERVICES & TRUST PILLARS RESOLVED TO BESPOKE SVG ICONS!');
} else {
process.exit(1);
}