Ahhh, OpenFoodFacts and their types...
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user