File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
WooCommerce/WooCommerceTests/ViewRelated/Bookings Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -220,27 +220,4 @@ final class BookingDetailsViewModelTests: XCTestCase {
220220 // Then
221221 XCTAssertTrue ( viewModel. navigationTitle. contains ( " 12345 " ) )
222222 }
223-
224- func test_syncData_triggers_booking_synchronization( ) async {
225- // Given
226- let booking = Booking . fake ( ) . copy ( siteID: 123 , bookingID: 456 )
227- let viewModel = BookingDetailsViewModel ( booking: booking, stores: storesManager)
228-
229- let expectation = self . expectation ( description: " Booking synchronization should be triggered " )
230-
231- storesManager. whenReceivingAction ( ofType: BookingAction . self) { action in
232- guard case let . synchronizeBooking( siteID, bookingID, _) = action else {
233- return
234- }
235- XCTAssertEqual ( siteID, 123 )
236- XCTAssertEqual ( bookingID, 456 )
237- expectation. fulfill ( )
238- }
239-
240- // When
241- await viewModel. syncData ( )
242-
243- // Then
244- await fulfillment ( of: [ expectation] , timeout: 1.0 )
245- }
246223}
You can’t perform that action at this time.
0 commit comments