Files
divkit/client/ios/LayoutKit/LayoutKitTests/ViewModels/TabbedPages/TabContentsViewModelTests.swift
T
pkurchatov 27a3472171 Enabled blankLinesBetweenImports swiftformat rule
commit_hash:84ea24cbdf21ef89741080f38ec5e583172a2458
2024-12-20 12:41:02 +03:00

14 lines
435 B
Swift

import Foundation
@testable import LayoutKit
import XCTest
final class TabContentsViewModelTests: XCTestCase {
private func makeMe(pages: [TabPageViewModel]) throws -> TabContentsViewModel {
try TabContentsViewModel(pages: pages, pagesHeight: .default)
}
func test_WhenCreatingFromEmptyTabs_ThrowsMissingChildrenError() {
XCTAssertThrowsError(try makeMe(pages: []), BlockError("Tab error: no children provided"))
}
}