Files
divkit/client/ios/LayoutKit/LayoutKitTests/ViewModels/TabbedPages/TabContentsViewModelTests.swift
T
babaevmm 956c055cd8 update swiftformat, add organize rule
commit_hash:0f7ba811b37db6d2a9fc05efe5f94502feda4856
2025-08-04 16:24:48 +03:00

15 lines
436 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)
}
}