Skip to content
This repository was archived by the owner on Nov 10, 2024. It is now read-only.

Commit e0536ab

Browse files
committed
Update README.md
1 parent 926d98a commit e0536ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ window.inertiaEventsCount = {
3838
}
3939
```
4040

41-
In the creation of the Vue application instance, register an [event listener](https://inertiajs.com/events) for each lifecycle.
41+
In the creation of the Vue application instance, use the `mounted` method to register the [event listeners](https://inertiajs.com/events).
4242

4343
```js
4444
new Vue({
@@ -66,10 +66,10 @@ This package provides three helper methods for your Laravel Dusk tests.
6666
The `waitForInertiaError()` method may be used to wait until the [Error](https://inertiajs.com/events#error) event is fired. You can use it to assert against responses where validation errors are returned.
6767

6868
### Navigate
69-
The `waitForInertiaNavigate()` method may be use to until the [Navigate](https://inertiajs.com/events#navigate) event is fired. You can use it to assert a user is redirected, for example, after submitting a form.
69+
The `waitForInertiaNavigate()` method may be used to wait until the [Navigate](https://inertiajs.com/events#navigate) event is fired. You can use it to assert a user is redirected, for example, after submitting a form.
7070

7171
### Success
72-
The `waitForInertiaSuccess()` method may be used to wait until the [Success](https://inertiajs.com/events#success) event is fired. This is great for testing forms that don't redirect after a succesful submition.
72+
The `waitForInertiaSuccess()` method may be used to wait until the [Success](https://inertiajs.com/events#success) event is fired. This is great for testing forms that don't redirect after successfully submitting a form.
7373

7474
### Example test
7575

0 commit comments

Comments
 (0)