From 1269b2072b4297c4b2d9abb660dc804592279f98 Mon Sep 17 00:00:00 2001 From: Roman Podymov Date: Sat, 2 Nov 2024 18:37:36 +0100 Subject: [PATCH] Fix tests --- CalciumTests/CalciumTests.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CalciumTests/CalciumTests.swift b/CalciumTests/CalciumTests.swift index 75f6af3..a7de74c 100644 --- a/CalciumTests/CalciumTests.swift +++ b/CalciumTests/CalciumTests.swift @@ -12,7 +12,8 @@ import ComposableArchitecture import XCTest class CalciumTests: XCTestCase { - func testState() { + @MainActor + func testState() async { let store = Store(initialState: MainReducer.State()) { MainReducer() } @@ -20,8 +21,9 @@ class CalciumTests: XCTestCase { 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 ) }