File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
WooCommerce/WooCommerceTests/POS/Models Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments