Skip to content

Commit

Permalink
Fix test case of UIHostingControllerTests.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Ye committed Apr 27, 2024
1 parent 5d99ba6 commit 3725a67
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import UIKit

@MainActor
struct UIHostingControllerTests {
@Test("BodyAccessor crash for non empty View instance", .bug("#81", relationship: .verifiesFix))
func testBasicAnyViewWithProperty() throws {
@Test(
"Attribute setter crash for basic AnyView",
.bug("https://github.com/OpenSwiftUIProject/OpenGraph/issues/58", relationship: .verifiesFix)
)
func testBasicAnyView() throws {
struct ContentView: View {
var name = ""
var body: some View {
AnyView(EmptyView())
}
Expand All @@ -20,9 +22,12 @@ struct UIHostingControllerTests {
vc.triggerLayout()
workaroundIssue87(vc)
}

@Test("BodyAccessor crash for non empty View instance", .bug("#81", relationship: .verifiesFix))
func basicAnyViewWithProperty() throws {

@Test(
"BodyAccessor crash for non empty View instance",
.bug("#81", relationship: .verifiesFix)
)
func testBasicAnyViewWithProperty() throws {
struct ContentView: View {
var name = ""
var body: some View {
Expand Down

0 comments on commit 3725a67

Please sign in to comment.