mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-03 06:36:58 +02:00
Update based on comments from Doug
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user