Skip to content

Commit

Permalink
Tests fix (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazaiMazai authored Sep 11, 2024
1 parent 15cbdb9 commit 9fe8932
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ final class StoreViewContentInitialRenderTests: XCTestCase {
func test_WhenViewInitiallySetupWithRootStore_ThenViewIsRenderedOnce() {
let contentRendered = expectation(description: "contentRendered")
contentRendered.expectedFulfillmentCount = 1
let store = StoreOf(\.rootStore).store()
let store = StateStore<Int, Int>(0) { state, action in state += action }

UIWindow.setupForSwiftUITests(
rootView: StoreView(
Expand All @@ -126,7 +126,7 @@ final class StoreViewContentInitialRenderTests: XCTestCase {
func test_WhenViewInitiallySetupWithChildStore_ThenViewIsRenderedOnce() {
let contentRendered = expectation(description: "contentRendered")
contentRendered.expectedFulfillmentCount = 1
let store = StoreOf(\.rootStore)
let store = StateStore<Int, Int>(0) { state, action in state += action }
.with("text") {_, _ in }

UIWindow.setupForSwiftUITests(
Expand All @@ -148,7 +148,7 @@ final class StoreViewContentInitialRenderTests: XCTestCase {
func test_WhenViewInitiallySetup_ThenViewIsRenderedOnce() {
let contentRendered = expectation(description: "contentRendered")
contentRendered.expectedFulfillmentCount = 1
let store = StoreOf(\.rootStore)
let store = StateStore<Int, Int>(0) { state, action in state += action }
.with("text") {_, _ in }
.map { $0.0 }

Expand Down

0 comments on commit 9fe8932

Please sign in to comment.