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

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Nov 2, 2024
1 parent 2fe5cfa commit 1269b20
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CalciumTests/CalciumTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@ import ComposableArchitecture
import XCTest

class CalciumTests: XCTestCase {
func testState() {
@MainActor
func testState() async {
let store = Store(initialState: MainReducer.State()) {
MainReducer()
}
let screen = MainScreen(
store: store
)
store.send(.pressButton(.SomeDigit(digit: .one)))
let text = screen.store.state.displayingText
XCTAssertEqual(
screen.store.state.displayingText,
text,
CalciumCommon.CalculatorButton.SomeDigit(digit: .one).displayingValue
)
}
Expand Down

0 comments on commit 1269b20

Please sign in to comment.