Add ViewModel tests and change avatar data to use existing AvatarViewDataProtocol

This commit is contained in:
langleyd
2021-07-04 17:01:42 +01:00
parent 83d98c077d
commit d225adfc47
7 changed files with 161 additions and 19 deletions
@@ -21,9 +21,11 @@ import UIKit
final class RoomNotificationSettingsViewController: UIViewController {
// MARK: - Properties
private enum Constants {
static let linkToAccountSettings = "linkToAccountSettings"
}
// MARK: Outlets
@IBOutlet private weak var mainTableView: UITableView!
@@ -161,7 +163,7 @@ final class RoomNotificationSettingsViewController: UIViewController {
}
}
// MARK - UITableViewDataSource
// MARK: - UITableViewDataSource
extension RoomNotificationSettingsViewController: UITableViewDataSource {
func numberOfSections(in tableView: UITableView) -> Int {
@@ -187,7 +189,7 @@ extension RoomNotificationSettingsViewController: UITableViewDataSource {
}
// MARK - UITableViewDelegate
// MARK: - UITableViewDelegate
extension RoomNotificationSettingsViewController: UITableViewDelegate {
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {