From a1d3dad7fa5f7cb5967307bd083a656cf6d598af Mon Sep 17 00:00:00 2001 From: crelies Date: Mon, 11 Apr 2022 00:02:12 +0200 Subject: [PATCH] tests(): fixed tests --- Tests/AdvancedListTests/AdvancedListTests.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/AdvancedListTests/AdvancedListTests.swift b/Tests/AdvancedListTests/AdvancedListTests.swift index 0807321..660e430 100644 --- a/Tests/AdvancedListTests/AdvancedListTests.swift +++ b/Tests/AdvancedListTests/AdvancedListTests.swift @@ -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)")