Should work
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user