Skip to content

Commit f6d2926

Browse files
authored
added array-based version of TestStore.assert (#115)
1 parent 0bd288a commit f6d2926

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Sources/ComposableArchitecture/TestSupport/TestStore.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,16 @@
161161
file: StaticString = #file,
162162
line: UInt = #line
163163
) {
164-
var receivedActions: [Action] = []
164+
assert(steps, file: file, line: line)
165+
}
166+
167+
/// Asserts against an array of actions.
168+
public func assert(
169+
_ steps: [Step],
170+
file: StaticString = #file,
171+
line: UInt = #line
172+
) {
173+
var receivedActions: [Action] = []
165174

166175
var cancellables: [AnyCancellable] = []
167176

0 commit comments

Comments
 (0)