File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -597,8 +597,8 @@ If you're writing an `async` test some of the APIs change slightly. The biggest
597597
598598```swift
599599let  sut =  TestView (flag : false )
600- try  await  ViewHosting.host (sut) { hostedView  in 
601-     try  await  hostedView .inspection .inspect  { view in 
600+ try  await  ViewHosting.host (sut) {
601+     try  await  sut .inspection .inspect  { view in 
602602        let  text =  try  view.button ().labelView ().text ().string ()
603603        XCTAssertEqual (text, " false"  )
604604        sut.publisher .send (true )
@@ -610,7 +610,7 @@ For instances where a test is `async` but the view utilizes Combine to listen to
610610
611611```swift
612612let  sut =  TestView (flag : false )
613- try  await  ViewHosting.host (sut) { sut  in 
613+ try  await  ViewHosting.host (sut) {
614614    try  await  withThrowingDiscardingTaskGroup  { group in 
615615        group.addTask  {
616616            try  await  sut.inspection .inspect  { view in 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments