<?php

use App\Support\Badges\BadgeCatalog;
use App\Support\Badges\BadgeDomain;

it('maps pending tenant status to a Pending warning badge', function (): void {
    $spec = BadgeCatalog::spec(BadgeDomain::TenantStatus, 'pending');

    expect($spec->label)->toBe('Pending');
    expect($spec->color)->toBe('warning');
    expect($spec->icon)->toBe('heroicon-m-clock');
});

it('normalizes tenant status input before mapping', function (): void {
    $spec = BadgeCatalog::spec(BadgeDomain::TenantStatus, 'PENDING');

    expect($spec->label)->toBe('Pending');
});
