Skip to content

Commit 388150e

Browse files
authored
Merge pull request #56 from dcblogdev/close-model-from-event
fix modal close event and improve test comments for user registration
2 parents 148c649 + 97ada41 commit 388150e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

resources/views/components/modal.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
this.on = false;
1616
document.body.classList.remove('overflow-hidden'); // Restore background scroll
1717
}
18-
}">
18+
}" x-on:close-modal.window="close()">
1919

2020
<!-- Trigger -->
2121
{{ $trigger }}

tests/Feature/App/Http/Controllers/Auth/RegisteredUserControllerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

33
use App\Models\User;
4-
54
use Illuminate\Auth\Notifications\VerifyEmail;
65
use Illuminate\Support\Facades\Notification;
6+
77
use function Pest\Laravel\assertGuest;
88
use function Pest\Laravel\get;
99
use function Pest\Laravel\post;
@@ -69,15 +69,15 @@
6969
});
7070

7171
test('users can register multiple times', function () {
72-
//first user
72+
// first user
7373
post(route('register'), [
7474
'name' => fake()->name(),
7575
'email' => fake()->email(),
7676
'password' => 'ght73A3!$^DS',
7777
'confirmPassword' => 'ght73A3!$^DS',
7878
]);
7979

80-
//second user
80+
// second user
8181
post(route('register'), [
8282
'name' => fake()->name(),
8383
'email' => fake()->email(),

0 commit comments

Comments
 (0)