diff --git a/docs/ExpectAPI.md b/docs/ExpectAPI.md index 336564856346..b1039fa51446 100644 --- a/docs/ExpectAPI.md +++ b/docs/ExpectAPI.md @@ -1100,7 +1100,7 @@ test('doAsync calls both callbacks', () => { expect(data).toBeTruthy(); } - doAsync(callback1, callback2); + return doAsync(callback1, callback2); }); ```