Skip to content

Commit c5362dd

Browse files
joshhealdclaude
andcommitted
Fix test helper functions in PointOfSaleObservableItemsControllerTests
Updated makeSimpleProduct and makeVariation helper functions to use POSItemIdentifier instead of UUID, matching the updated type signatures. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent bfd4b2d commit c5362dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Modules/Tests/PointOfSaleTests/Controllers/PointOfSaleObservableItemsControllerTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ final class PointOfSaleObservableItemsControllerTests {
77

88
// MARK: - Test Helpers
99

10-
private func makeSimpleProduct(id: UUID = UUID(), name: String = "Test Product", productID: Int64 = 1) -> POSItem {
10+
private func makeSimpleProduct(id: POSItemIdentifier? = nil, name: String = "Test Product", productID: Int64 = 1) -> POSItem {
1111
.simpleProduct(POSSimpleProduct(
12-
id: id,
12+
id: id ?? POSItemIdentifier(underlyingType: .product, itemID: productID),
1313
name: name,
1414
formattedPrice: "$2.00",
1515
productID: productID,
@@ -20,9 +20,9 @@ final class PointOfSaleObservableItemsControllerTests {
2020
))
2121
}
2222

23-
private func makeVariation(id: UUID = UUID(), name: String = "Test Variation", variationID: Int64 = 1) -> POSItem {
23+
private func makeVariation(id: POSItemIdentifier? = nil, name: String = "Test Variation", variationID: Int64 = 1) -> POSItem {
2424
.variation(POSVariation(
25-
id: id,
25+
id: id ?? POSItemIdentifier(underlyingType: .variation, itemID: variationID),
2626
name: name,
2727
formattedPrice: "$2.00",
2828
price: "2.00",

0 commit comments

Comments
 (0)