Update based on comments from Doug

This commit is contained in:
David Langley
2021-09-09 17:00:45 +01:00
parent 2d212ddd8e
commit c80dfcd1d0
8 changed files with 42 additions and 45 deletions
@@ -19,6 +19,11 @@ import Combine
/**
XCTest utility to wait for results from publishers, so that the output can be used for assertions.
```
let collectedEvents = somePublisher.collect(3).first()
XCTAssertEqual(try xcAwait(collectedEvents), [expected, values, here])
```
*/
@available(iOS 14.0, *)
extension XCTestCase {