diff --git a/docs/api.md b/docs/api.md index aa843e9..f229f92 100644 --- a/docs/api.md +++ b/docs/api.md @@ -185,7 +185,7 @@ exit code it closed with. ```javascript const instance = render('command') -await waitFor(() => instance.hasExit()).toMatchObject({exitCode: 1}) +await waitFor(() => expect(instance.hasExit()).toMatchObject({ exitCode: 1 })) ``` This method returns `null` if still running, but `{exitCode: number}` if it has