Skip to content

Commit

Permalink
tests(): fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
crelies committed Apr 10, 2022
1 parent 3025dd9 commit a1d3dad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/AdvancedListTests/AdvancedListTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ final class AdvancedListTests: XCTestCase {
do {
let inspectableView = try view.body.inspect()
let vStack = try inspectableView.vStack()
let list = try vStack.list(0)
let list = try vStack.anyView(0).list()
let anyDynamicViewContent = try list.first?.view(AnyDynamicViewContent.self)
let forEach = try anyDynamicViewContent?.anyView().forEach()

let firstElement = forEach?.first
let firstElement = try forEach?.first?.anyView()
XCTAssertEqual(try firstElement?.text().string(), mockItem1)

let secondElement = forEach?[1]
let secondElement = try forEach?[1].anyView()
XCTAssertEqual(try secondElement?.text().string(), mockItem2)
} catch {
XCTFail("\(error)")
Expand Down

0 comments on commit a1d3dad

Please sign in to comment.