secant-ios-wallet/secantTests/SendTests/TransactionAddressInputTest...

34 lines
884 B
Swift

//
// TransactionAddressTextFieldTests.swift
// secantTests
//
// Created by Lukáš Korba on 06.05.2022.
//
import XCTest
import ComposableArchitecture
import UIComponents
@testable import secant_testnet
@MainActor
class TransactionAddressTextFieldTests: XCTestCase {
func testClearValue() async throws {
let store = TestStore(
initialState:
TransactionAddressTextFieldReducer.State(
textFieldState:
TCATextFieldReducer.State(
validationType: nil,
text: "t1gXqfSSQt6WfpwyuCU3Wi7sSVZ66DYQ3Po".redacted
)
)
) {
TransactionAddressTextFieldReducer()
}
await store.send(.clearAddress) { state in
state.textFieldState.text = "".redacted
}
}
}