File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed
resources/views/components/form
tests/Unit/resources/views/components/form Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 3939 aria-invalid =" true"
4040 aria-description =" {{ $message } }"
4141 @enderror
42- >
43- {{ $slot } }
44- </textarea >
42+ >{{ $slot } } </textarea >
4543</div >
4644@error ($name )
4745 <p class =" error" aria-live =" assertive" >{{ $message } } </p >
Original file line number Diff line number Diff line change 3333 aria-invalid =" true"
3434 aria-description =" {{ $message } }"
3535 @enderror
36- >
37- {{ $slot } }
38- </textarea >
36+ >{{ $slot } } </textarea >
3937 @error ($name )
4038 <p class =" error" aria-live =" assertive" >{{ $message } } </p >
4139 @enderror
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ test ('renders correct textarea without extra spaces ' , function () {
4+ test ()->withViewErrors ([])
5+ ->blade ('<x-form.textarea name="about" id="about">Hello</x-form.textarea> ' )
6+ ->assertSeeInOrder ([
7+ '<textarea ' ,
8+ "name='about' " ,
9+ "id='about' " ,
10+ '>Hello</textarea> ' ,
11+ ], false );
12+ });
You can’t perform that action at this time.
0 commit comments