Skip to content

Commit f5960f3

Browse files
xavierLowmillerDivineDominion
authored andcommitted
Make .run() or .wait() required (#40)
1 parent 8519130 commit f5960f3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
- Rename SwiftPM library to `ReSwiftThunk`, this makes naming consistent across all package manager (Cocoapods, Carthage and SwiftPM)
1111

1212

13+
- `ExpectThunk`'s methods `dispatches` and `getsState` no longer have `@discardableResult` return values
14+
1315
# 1.2.0
1416

1517
**API Changes:**

ReSwift-ThunkTests/ExpectThunk.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public class ExpectThunk<State: StateType> {
5757
}
5858

5959
extension ExpectThunk {
60-
@discardableResult
6160
public func dispatches<A: Action & Equatable>(_ expected: A,
6261
file: StaticString = #file,
6362
line: UInt = #line) -> Self {
@@ -78,7 +77,6 @@ extension ExpectThunk {
7877
return self
7978
}
8079

81-
@discardableResult
8280
public func dispatches(file: StaticString = #file,
8381
line: UInt = #line,
8482
dispatch assertion: @escaping DispatchFunction) -> Self {
@@ -95,7 +93,6 @@ extension ExpectThunk {
9593
}
9694

9795
extension ExpectThunk {
98-
@discardableResult
9996
public func getsState(_ state: State,
10097
file: StaticString = #file,
10198
line: UInt = #line) -> Self {

0 commit comments

Comments
 (0)