Skip to content

Commit cbc63cd

Browse files
committed
Update PointOfSaleAggregateModelTests.swift
1 parent 58ba451 commit cbc63cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WooCommerce/WooCommerceTests/POS/Models/PointOfSaleAggregateModelTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ struct PointOfSaleAggregateModelTests {
125125
try #require(cart.purchasableItems.isEmpty)
126126

127127
// When
128-
let id = cart.addLoadingItem()
128+
let loadingItem = cart.addLoadingItem()
129129

130130
// Then
131131
#expect(cart.purchasableItems.count == 1)
132132
let item = try #require(cart.purchasableItems.first)
133-
#expect(item.id == id)
133+
#expect(item.id == loadingItem.id)
134134
guard case .loading = item.state else {
135135
throw CartTestError.unexpectedItemStateInCart
136136
}
@@ -140,11 +140,11 @@ struct PointOfSaleAggregateModelTests {
140140
@Test func updateLoadingItem_updates_loading_item_with_simple_product() async throws {
141141
// Given
142142
var cart = Cart()
143-
let id = cart.addLoadingItem()
143+
let loadingItem = cart.addLoadingItem()
144144
let purchasableItem = makePurchasableItem(name: "Test Product")
145145

146146
// When
147-
cart.updateLoadingItem(id: id, with: purchasableItem)
147+
cart.updateLoadingItem(id: loadingItem.id, with: purchasableItem)
148148

149149
// Then
150150
#expect(cart.purchasableItems.count == 1)

0 commit comments

Comments
 (0)