Skip to content

Commit 18bd98e

Browse files
stephencelismluisbrown
authored andcommitted
Don't use Store.scope or ViewStore.send in TestStore (#921)
1 parent 8d8290d commit 18bd98e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Sources/ComposableArchitecture/TestSupport/TestStore.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -343,13 +343,7 @@
343343
)
344344
}
345345
var expectedState = self.toLocalState(self.snapshotState)
346-
ViewStore(
347-
self.store.scope(
348-
state: self.toLocalState,
349-
action: { .init(origin: .send($0), file: file, line: line) }
350-
)
351-
)
352-
.send(action)
346+
self.store.send(.init(origin: .send(action), file: file, line: line))
353347
do {
354348
try update(&expectedState)
355349
} catch {

0 commit comments

Comments
 (0)