Skip to content

Commit

Permalink
Update the README to have an accurate usage of expect (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
younata committed Mar 28, 2023
1 parent 1454547 commit 1b96f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ the async function in to `expect`:
```swift
// Swift
await expect(await aFunctionReturning1()).to(equal(1))
await expect { await aFunctionReturning1() }.to(equal(1))
```

The async function is awaited on first, before passing it to the matcher. This
Expand Down

0 comments on commit 1b96f82

Please sign in to comment.