Skip to content

Commit ee38d15

Browse files
committed
Update to latest SwiftRex
1 parent b008257 commit ee38d15

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let package = Package(
1717
],
1818
dependencies: [
1919
.package(name: "SnapshotTesting", url: "https://github.com/thedavidharris/swift-snapshot-testing.git", .revision("64c1925")),
20-
.package(name: "SwiftRex", url: "https://github.com/SwiftRex/SwiftRex.git", from: "0.7.1")
20+
.package(name: "SwiftRex", url: "https://github.com/SwiftRex/SwiftRex.git", .branch("develop"))
2121
],
2222
targets: [
2323
.target(name: "TestingExtensions", dependencies: ["SnapshotTesting", .product(name: "CombineRexDynamic", package: "SwiftRex")])

Sources/TestingExtensions/UseCaseTests.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extension XCTestCase {
3737
middleware: M,
3838
steps: Step<M.InputActionType, M.StateType>...,
3939
otherSteps: [Step<M.InputActionType, M.StateType>] = [],
40-
file: StaticString = #file,
40+
file: StaticString = #filePath,
4141
line: UInt = #line
4242
) where M.InputActionType == M.OutputActionType, M.InputActionType: Equatable, M.StateType: Equatable {
4343
assert(
@@ -58,7 +58,7 @@ extension XCTestCase {
5858
steps: Step<M.InputActionType, M.StateType>...,
5959
otherSteps: [Step<M.InputActionType, M.StateType>] = [],
6060
stateEquating: (M.StateType, M.StateType) -> Bool,
61-
file: StaticString = #file,
61+
file: StaticString = #filePath,
6262
line: UInt = #line
6363
) where M.InputActionType == M.OutputActionType, M.InputActionType: Equatable {
6464
assert(
@@ -78,7 +78,7 @@ extension XCTestCase {
7878
middleware: M,
7979
steps: [Step<M.InputActionType, M.StateType>],
8080
stateEquating: (M.StateType, M.StateType) -> Bool,
81-
file: StaticString = #file,
81+
file: StaticString = #filePath,
8282
line: UInt = #line
8383
) where M.InputActionType == M.OutputActionType, M.InputActionType: Equatable {
8484
var state = initialValue
@@ -106,7 +106,7 @@ extension XCTestCase {
106106
from: .init(file: "\(file)", function: "", line: line, info: nil),
107107
afterReducer: &afterReducer
108108
)
109-
state = reducer.reduce(action, state)
109+
reducer.reduce(action, &state)
110110
afterReducer.reducerIsDone()
111111

112112
stateChange(&expected)
@@ -128,7 +128,7 @@ extension XCTestCase {
128128
from: .init(file: "\(file)", function: "", line: line, info: nil),
129129
afterReducer: &afterReducer
130130
)
131-
state = reducer.reduce(action, state)
131+
reducer.reduce(action, &state)
132132
afterReducer.reducerIsDone()
133133

134134
stateChange(&expected)
@@ -148,7 +148,7 @@ extension XCTestCase {
148148
equating: (StateType, StateType) -> Bool,
149149
statusQuo: StateType,
150150
expected: StateType,
151-
file: StaticString = #file,
151+
file: StaticString = #filePath,
152152
line: UInt = #line
153153
) {
154154
XCTAssertTrue(

0 commit comments

Comments
 (0)