File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Modules/Tests/PointOfSaleTests/Models Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -614,10 +614,11 @@ struct PointOfSaleAggregateModelTests {
614614 continuation. resume ( )
615615 }
616616
617- // Collect payment should only be called once the card reader is connect
617+ // When: the card reader connects
618618 cardPresentPaymentService. connectedReader = . init( name: " Test reader " , batteryLevel: 0.7 )
619619 }
620620
621+ // Then
621622 #expect( cardPresentPaymentService. collectPaymentWasCalled == true )
622623 }
623624
@@ -675,10 +676,11 @@ struct PointOfSaleAggregateModelTests {
675676 continuation. resume ( )
676677 }
677678
678- // Collect payment should be called once the card reader is reconnected
679+ // When: the card reader is reconnected
679680 cardPresentPaymentService. connectedReader = . init( name: " Test reader " , batteryLevel: 0.7 )
680681 }
681682
683+ // Then
682684 #expect( cardPresentPaymentService. collectPaymentWasCalled == true )
683685 }
684686
You can’t perform that action at this time.
0 commit comments