Skip to content

Commit 6927506

Browse files
committed
wip: action tests
1 parent e8d151e commit 6927506

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Workflow/Tests/AnyWorkflowActionTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ final class AnyWorkflowActionTests: XCTestCase {
8383
XCTAssertEqual(log, [])
8484

8585
var state: Void = ()
86-
_ = erased.apply(toState: &state)
86+
_ = erased.apply(toState: &state, workflow: ExampleWorkflow())
8787

8888
XCTAssertEqual(log, ["action invoked"])
8989
}

WorkflowTesting/Sources/WorkflowActionTester.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public struct WorkflowActionTester<WorkflowType, Action> where Action: WorkflowA
7878
@discardableResult
7979
public func send(action: Action) -> WorkflowActionTester<WorkflowType, Action> {
8080
var newState = state
81-
let output = action.apply(toState: &newState)
81+
let output = action.apply(toState: &newState, workflow: workflow)
8282
return WorkflowActionTester(state: newState, output: output)
8383
}
8484

0 commit comments

Comments
 (0)