Sam King 1 年之前
父節點
當前提交
47a367a7a4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      TrioTests/JSONImporterTests.swift

+ 1 - 1
TrioTests/JSONImporterTests.swift

@@ -248,7 +248,7 @@ class BundleReference {}
         #expect(determination.threshold == Decimal(string: "3.7").map(NSDecimalNumber.init))
         #expect(determination.threshold == Decimal(string: "3.7").map(NSDecimalNumber.init))
         #expect(determination.carbRatio == nil) // not present in JSON
         #expect(determination.carbRatio == nil) // not present in JSON
 
 
-        let forecasts = try await CoreDataStack.shared.fetchEntitiesAsync(
+        let forecasts = try await coreDataStack.fetchEntitiesAsync(
             ofType: Forecast.self,
             ofType: Forecast.self,
             onContext: context,
             onContext: context,
             predicate: NSPredicate(format: "orefDetermination = %@", determination.objectID),
             predicate: NSPredicate(format: "orefDetermination = %@", determination.objectID),