Skip to content

Commit a1d3dad

Browse files
author
crelies
committed
tests(): fixed tests
1 parent 3025dd9 commit a1d3dad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/AdvancedListTests/AdvancedListTests.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ final class AdvancedListTests: XCTestCase {
5858
do {
5959
let inspectableView = try view.body.inspect()
6060
let vStack = try inspectableView.vStack()
61-
let list = try vStack.list(0)
61+
let list = try vStack.anyView(0).list()
6262
let anyDynamicViewContent = try list.first?.view(AnyDynamicViewContent.self)
6363
let forEach = try anyDynamicViewContent?.anyView().forEach()
6464

65-
let firstElement = forEach?.first
65+
let firstElement = try forEach?.first?.anyView()
6666
XCTAssertEqual(try firstElement?.text().string(), mockItem1)
6767

68-
let secondElement = forEach?[1]
68+
let secondElement = try forEach?[1].anyView()
6969
XCTAssertEqual(try secondElement?.text().string(), mockItem2)
7070
} catch {
7171
XCTFail("\(error)")

0 commit comments

Comments
 (0)