diff --git a/Tests/ViewInspectionTests/StaticViewElementsTests.swift b/Tests/ViewInspectionTests/StaticViewElementsTests.swift index 7d8a908..39918b5 100644 --- a/Tests/ViewInspectionTests/StaticViewElementsTests.swift +++ b/Tests/ViewInspectionTests/StaticViewElementsTests.swift @@ -6,58 +6,10 @@ final class StaticViewElementsTests: XCTestCase {} @MainActor extension StaticViewElementsTests { func test_Text() throws { - XCTAssertEqual( - try Text("a").snap.one(.text).string, - "a" - ) + XCTAssertEqual(try Text("a").snap.one(.text).string, "a") } func test_Image() throws { - let ref = try Image(systemName: "circle").snap.one(.image) - XCTAssertEqual(try ref.name, "circle") - } - - @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) - func test_NavigationStack() throws { - XCTAssertEqual( - try NavigationStack { Text("a") } - .snap - .one(.navigationStack) - .node - .one(.text) - .string, - "a" - ) - } - - func test_GeometryReader() { - XCTAssertEqual( - GeometryReader { _ in } - .snap - .all(.geometryReader) - .count, - 1 - ) - } - - func test_ForEach() { - XCTAssertEqual( - ForEach(Array(0 ... 1), id: \.self) { - Text($0.description) - } - .snap - .all(.forEach) - .count, - 2 - ) - XCTAssertEqual( - ForEach(Array(0 ... 1), id: \.self) { - Text($0.description) - } - .snap - .all(.text) - .count, - 0 - ) + XCTAssertEqual(try Image(systemName: "circle").snap.one(.image).name, "circle") } }