Should work

This commit is contained in:
cdricms
2025-12-06 17:56:19 +01:00
parent 15fbc7b218
commit 62ad13cb8c
2 changed files with 7 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ final class OpenFoodFactsTests: XCTestCase {
.sort(.popularity),
)
let results = response.products ?? []
let results = response.products
let jsonResults = try JSONEncoder().encode(results)
try jsonResults.write(to: .init(filePath: "./jsonResults.json"))