Push the deactivate account screen. (#3297)

This commit is contained in:
Doug
2024-09-18 10:21:48 +01:00
committed by GitHub
parent 5625e78fc9
commit 5078f571ed
11 changed files with 11 additions and 41 deletions
@@ -78,14 +78,4 @@ class DeactivateAccountScreenViewModelTests: XCTestCase {
XCTAssertEqual(clientProxy.deactivateAccountPasswordEraseDataReceivedArguments?.password, enteredPassword)
XCTAssertEqual(clientProxy.deactivateAccountPasswordEraseDataReceivedArguments?.eraseData, shouldErase)
}
func testCancel() async throws {
// When cancelling the view.
let deferred = deferFulfillment(viewModel.actionsPublisher) { $0 == .cancel }
context.send(viewAction: .cancel)
try await deferred.fulfill()
// Then no API call should be made to deactivate the account.
XCTAssertFalse(clientProxy.deactivateAccountPasswordEraseDataCalled)
}
}