Skip to content

Commit d004acc

Browse files
committed
use specific handler type when testing search
1 parent a7c5977 commit d004acc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

WooCommerce/WooCommerceTests/POS/Presentation/POSItemActionHandlerTests.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ struct POSItemActionHandlerTests {
4040
collectOrderPaymentAnalyticsTracker: MockPOSCollectOrderPaymentAnalyticsTracker(),
4141
searchHistoryService: MockPOSSearchHistoryService(),
4242
popularItemsController: MockPointOfSalePopularItemsController())
43-
let sut = StandardPOSItemActionHandler(posModel: aggregateModel,
44-
itemListType: .coupons(search: true))
43+
let sut = SearchResultItemActionHandler(posModel: aggregateModel,
44+
searchTerm: "",
45+
itemListType: .coupons(search: true))
4546

4647
let coupon = makeCouponItem(code: "DISCOUNT!")
4748

@@ -86,8 +87,9 @@ struct POSItemActionHandlerTests {
8687
collectOrderPaymentAnalyticsTracker: MockPOSCollectOrderPaymentAnalyticsTracker(),
8788
searchHistoryService: MockPOSSearchHistoryService(),
8889
popularItemsController: MockPointOfSalePopularItemsController())
89-
let sut = StandardPOSItemActionHandler(posModel: aggregateModel,
90-
itemListType: .products(search: true))
90+
let sut = SearchResultItemActionHandler(posModel: aggregateModel,
91+
searchTerm: "",
92+
itemListType: .coupons(search: true))
9193

9294
let product = makeProductItem()
9395

0 commit comments

Comments
 (0)