An advanced Ethereum/EVM mobile wallet
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
alpha-wallet-ios/TrustTests/Coordinators/TransactionCoordinatorTests...

41 lines
1.4 KiB

// Copyright SIX DAY LLC. All rights reserved.
import XCTest
@testable import Trust
class TransactionCoordinatorTests: XCTestCase {
/*
func testShowSendFlow() {
let coordinator = TransactionCoordinator(
session: .make(),
navigationController: FakeNavigationController(),
storage: FakeTransactionsStorage(),
keystore: FakeEtherKeystore(),
tokensStorage: FakeTokensDataStore()
)
coordinator.showPaymentFlow(for: .send(type: .ether(destination: .none)))
let controller = (coordinator.navigationController.presentedViewController as? UINavigationController)?.viewControllers[0]
XCTAssertTrue(coordinator.coordinators.first is PaymentCoordinator)
XCTAssertTrue(controller is SendViewController)
}
func testShowRequstFlow() {
let coordinator = TransactionCoordinator(
session: .make(),
navigationController: FakeNavigationController(),
storage: FakeTransactionsStorage(),
keystore: FakeEtherKeystore(),
tokensStorage: FakeTokensDataStore()
)
coordinator.showPaymentFlow(for: .request)
let controller = (coordinator.navigationController.presentedViewController as? UINavigationController)?.viewControllers[0]
XCTAssertTrue(coordinator.coordinators.first is PaymentCoordinator)
XCTAssertTrue(controller is RequestViewController)
}
*/
}