File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed
WooCommerceTests/POS/Controllers Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ protocol POSSearchingOrderListControllerProtocol: POSOrderListControllerProtocol
3131 private var cachedOrders : [ POSOrder ] = [ ]
3232 private( set) var selectedOrder : POSOrder ?
3333 private let orderListFetchStrategyFactory : POSOrderListFetchStrategyFactoryProtocol
34- private let analytics : POSAnalyticsProviding
3534 private var paginationTracker : AsyncPaginationTracker {
3635 if let existing = strategyPaginationTracker [ fetchStrategy. id] {
3736 return existing
@@ -42,11 +41,9 @@ protocol POSSearchingOrderListControllerProtocol: POSOrderListControllerProtocol
4241 }
4342
4443 init ( orderListFetchStrategyFactory: POSOrderListFetchStrategyFactoryProtocol ,
45- analytics: POSAnalyticsProviding ,
4644 initialState: POSOrderListState = . loading( [ ] ) ) {
4745 self . ordersViewState = initialState
4846 self . orderListFetchStrategyFactory = orderListFetchStrategyFactory
49- self . analytics = analytics
5047 self . fetchStrategy = orderListFetchStrategyFactory. defaultStrategy ( )
5148 }
5249
Original file line number Diff line number Diff line change @@ -214,8 +214,7 @@ private extension POSTabCoordinator {
214214 appPasswordSupportState: isAppPasswordSupported,
215215 currencyFormatter: CurrencyFormatter ( currencySettings: currencySettings) ,
216216 analytics: POSOrderListFetchAnalytics ( analytics: serviceAdaptor. analytics)
217- ) ,
218- analytics: serviceAdaptor. analytics
217+ )
219218 ) ,
220219
221220 onPointOfSaleModeActiveStateChange: { [ weak self] isEnabled in
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ import struct Yosemite.POSOrder
99final class POSOrderListControllerTests {
1010 private let orderListService = MockPOSOrderListService ( )
1111 private lazy var fetchStrategyFactory = MockPOSOrderListFetchStrategyFactory ( orderService: orderListService)
12- private lazy var sut = POSOrderListController ( orderListFetchStrategyFactory: fetchStrategyFactory,
13- analytics: MockPOSAnalytics ( ) )
12+ private lazy var sut = POSOrderListController ( orderListFetchStrategyFactory: fetchStrategyFactory)
1413
1514 @Test func loadOrders_requests_first_page_after_loading_two_pages( ) async throws {
1615 try #require( sut. ordersViewState. isLoading)
You can’t perform that action at this time.
0 commit comments