Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ph7jack committed Jan 4, 2025
1 parent 4d429e1 commit 5f555b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Unit/IconComponentTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Illuminate\Support\Facades\Blade;
use Illuminate\Support\{Collection, Str};
use Illuminate\Support\Facades\Blade;
use Symfony\Component\Finder\{Finder, SplFileInfo};
use WireUi\Heroicons\Icon;

Expand Down Expand Up @@ -56,9 +56,11 @@ function getIcons(string $variant): Collection
})->with([
['outline', new Icon(name: 'home', variant: 'outline')],
['outline', new Icon(name: 'home', outline: true)],
['solid', new Icon(name: 'home', solid: true)],
['solid', new Icon(name: 'home', solid: true)],
['mini.solid', new Icon(name: 'home', variant: 'mini', mini: true)],
['mini.solid', new Icon(name: 'home', mini: true)],
['micro.solid', new Icon(name: 'home', variant: 'micro', micro: true)],
['micro.solid', new Icon(name: 'home', micro: true)],
]);

it('should render all components with attributes', function (string $icon, string $variant) {
Expand Down

0 comments on commit 5f555b9

Please sign in to comment.