Files
pkurchatov 0663870bf9 Swiftformat
commit_hash:52ce6e4a9f35a44ddef28565cec76ddaabdc2d08
2025-09-18 12:40:09 +03:00

14 lines
435 B
Swift

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