Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
testState
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Jun 26, 2024
1 parent b22208f commit b557387
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion CalciumTests/CalciumTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,19 @@
// Copyright © 2024 Calcium. All rights reserved.
//

@testable import CalciumApp
import ComposableArchitecture
import XCTest

class CalciumTests: XCTestCase {
func test() {}
func testState() {
let store = Store(initialState: MainReducer.State()) {
MainReducer()
}
let screen = MainScreen(
store: store
)
store.send(.pressButton(.digit(.one)))
XCTAssertEqual(screen.store.state.displayingText, CalculatorButton.digit(.one).displayingValue)
}
}

0 comments on commit b557387

Please sign in to comment.