Ahhh, OpenFoodFacts and their types...

This commit is contained in:
cdricms
2025-12-06 18:13:36 +01:00
parent 62ad13cb8c
commit bdc4bb37f5
3 changed files with 31 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ final class OpenFoodFactsTests: XCTestCase {
let results = response.products
let jsonResults = try JSONEncoder().encode(results)
try jsonResults.write(to: .init(filePath: "./jsonResults.json"))
_ = jsonResults
XCTAssertFalse(results.isEmpty)
XCTAssertEqual(results.count, 5)