Skip to content

Commit 35ca967

Browse files
authored
Don't use Store.scope or ViewStore.send in TestStore (#921)
1 parent 706fda8 commit 35ca967

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
@@ -347,13 +347,7 @@
347347
)
348348
}
349349
var expectedState = self.toLocalState(self.snapshotState)
350-
ViewStore(
351-
self.store.scope(
352-
state: self.toLocalState,
353-
action: { .init(origin: .send($0), file: file, line: line) }
354-
)
355-
)
356-
.send(action)
350+
self.store.send(.init(origin: .send(action), file: file, line: line))
357351
do {
358352
try update(&expectedState)
359353
} catch {

0 commit comments

Comments
 (0)