File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 22
33namespace Livewire \Blaze ;
44
5- use Illuminate \Process \Pipe ;
65use Livewire \Blaze \Events \ComponentFolded ;
76use Livewire \Blaze \Nodes \ComponentNode ;
87use Livewire \Blaze \Imprinter \Imprinter ;
98use Livewire \Blaze \Tokenizer \Tokenizer ;
109use Illuminate \Support \Facades \Event ;
11- use Illuminate \Support \Facades \Pipeline ;
1210use Livewire \Blaze \Memoizer \Memoizer ;
1311use Livewire \Blaze \Walker \Walker ;
1412use Livewire \Blaze \Parser \Parser ;
Original file line number Diff line number Diff line change 77 \Illuminate \Support \Facades \Artisan::call ('view:clear ' );
88 });
99
10- function compile (string $ input ): string {
11- return app ('blaze ' )->compile ($ input );
12- }
13-
1410 it ('can imprint components with nested components that use the error bag ' , function () {
1511 $ input = '<x-field wire:model="search">Search</x-field> ' ;
1612 $ output = <<<'HTML'
@@ -21,6 +17,6 @@ function compile(string $input): string {
2117 </div>
2218 HTML;
2319
24- expect (compile ($ input ))->toContain ('<x-error :name=" \'search \'" /> ' );
20+ expect (app ( ' blaze ' )-> compile ($ input ))->toContain ('<x-error :name=" \'search \'" /> ' );
2521 });
2622});
You can’t perform that action at this time.
0 commit comments