Skip to content

Commit

Permalink
Get rid of warnings across the project
Browse files Browse the repository at this point in the history
  • Loading branch information
bencochran committed Jul 2, 2020
1 parent 54fffa6 commit 31790d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Expand Up @@ -61,6 +61,7 @@
}
}

@available(*, deprecated, message: "See `RenderTester` documentation for new style.")
public extension RenderExpectations {
init(
expectedState: ExpectedState<WorkflowType>? = nil,
Expand Down
1 change: 1 addition & 0 deletions WorkflowReactiveSwift/Tests/WorkerTests.swift
Expand Up @@ -51,6 +51,7 @@ class WorkerTests: XCTestCase {
disposable?.dispose()
}

@available(*, deprecated) // Marked to silence deprecation warnings
func testExpectedWorkerDeprecatedTests() {
SignalProducerTestWorkflow(key: "")
.renderTester()
Expand Down
Expand Up @@ -19,6 +19,7 @@ import Workflow
import WorkflowTesting
import XCTest

@available(*, deprecated) // Marked to silence deprecation warnings
final class WorkflowRenderTesterDeprecatedTests: XCTestCase {
func test_assertState() {
let renderTester = TestWorkflow(initialText: "initial").renderTester()
Expand Down
7 changes: 3 additions & 4 deletions WorkflowUI/Tests/ContainerViewControllerTests.swift
Expand Up @@ -212,10 +212,9 @@
}

func render(state: State, context: RenderContext<Self>) -> TestScreen {
context.awaitResult(
for: EchoWorker(value: value),
outputMap: { AnyWorkflowAction(sendingOutput: $0) }
)
EchoWorker(value: value)
.mapOutput { AnyWorkflowAction(sendingOutput: $0) }
.running(in: context)
return TestScreen(string: "\(value)")
}
}
Expand Down

0 comments on commit 31790d9

Please sign in to comment.