Skip to content

Commit ddfbc01

Browse files
committed
Fix tests
1 parent 76d18eb commit ddfbc01

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

LoopTests/ViewModels/BolusEntryViewModelTests.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class BolusEntryViewModelTests: XCTestCase {
276276
func testUpdateRecommendedBolusNoNotice() async throws {
277277
await setUpViewModel(originalCarbEntry: mockOriginalCarbEntry, potentialCarbEntry: mockPotentialCarbEntry)
278278
XCTAssertFalse(bolusEntryViewModel.isBolusRecommended)
279-
let recommendation = ManualBolusRecommendation(amount: 1.234, pendingInsulin: 4.321)
279+
let recommendation = ManualBolusRecommendation(amount: 1.25, pendingInsulin: 4.321)
280280
delegate.loopState.bolusRecommendationResult = recommendation
281281
await bolusEntryViewModel.update()
282282
XCTAssertTrue(bolusEntryViewModel.isBolusRecommended)
@@ -293,7 +293,7 @@ class BolusEntryViewModelTests: XCTestCase {
293293
func testUpdateRecommendedBolusWithNotice() async throws {
294294
delegate.settings.suspendThreshold = GlucoseThreshold(unit: .milligramsPerDeciliter, value: Self.exampleCGMGlucoseQuantity.doubleValue(for: .milligramsPerDeciliter))
295295
XCTAssertFalse(bolusEntryViewModel.isBolusRecommended)
296-
let recommendation = ManualBolusRecommendation(amount: 1.234, pendingInsulin: 4.321, notice: BolusRecommendationNotice.glucoseBelowSuspendThreshold(minGlucose: Self.exampleGlucoseValue))
296+
let recommendation = ManualBolusRecommendation(amount: 1.25, pendingInsulin: 4.321, notice: BolusRecommendationNotice.glucoseBelowSuspendThreshold(minGlucose: Self.exampleGlucoseValue))
297297
delegate.loopState.bolusRecommendationResult = recommendation
298298
await bolusEntryViewModel.update()
299299
XCTAssertTrue(bolusEntryViewModel.isBolusRecommended)
@@ -306,7 +306,7 @@ class BolusEntryViewModelTests: XCTestCase {
306306
func testUpdateRecommendedBolusWithNoticeMissingSuspendThreshold() async throws {
307307
XCTAssertFalse(bolusEntryViewModel.isBolusRecommended)
308308
delegate.settings.suspendThreshold = nil
309-
let recommendation = ManualBolusRecommendation(amount: 1.234, pendingInsulin: 4.321, notice: BolusRecommendationNotice.glucoseBelowSuspendThreshold(minGlucose: Self.exampleGlucoseValue))
309+
let recommendation = ManualBolusRecommendation(amount: 1.25, pendingInsulin: 4.321, notice: BolusRecommendationNotice.glucoseBelowSuspendThreshold(minGlucose: Self.exampleGlucoseValue))
310310
delegate.loopState.bolusRecommendationResult = recommendation
311311
await bolusEntryViewModel.update()
312312
XCTAssertTrue(bolusEntryViewModel.isBolusRecommended)
@@ -318,7 +318,7 @@ class BolusEntryViewModelTests: XCTestCase {
318318

319319
func testUpdateRecommendedBolusWithOtherNotice() async throws {
320320
XCTAssertFalse(bolusEntryViewModel.isBolusRecommended)
321-
let recommendation = ManualBolusRecommendation(amount: 1.234, pendingInsulin: 4.321, notice: BolusRecommendationNotice.currentGlucoseBelowTarget(glucose: Self.exampleGlucoseValue))
321+
let recommendation = ManualBolusRecommendation(amount: 1.25, pendingInsulin: 4.321, notice: BolusRecommendationNotice.currentGlucoseBelowTarget(glucose: Self.exampleGlucoseValue))
322322
delegate.loopState.bolusRecommendationResult = recommendation
323323
await bolusEntryViewModel.update()
324324
XCTAssertTrue(bolusEntryViewModel.isBolusRecommended)
@@ -382,7 +382,7 @@ class BolusEntryViewModelTests: XCTestCase {
382382
await setUpViewModel(originalCarbEntry: mockOriginalCarbEntry, potentialCarbEntry: mockPotentialCarbEntry)
383383
bolusEntryViewModel.manualGlucoseQuantity = Self.exampleManualGlucoseQuantity
384384
XCTAssertFalse(bolusEntryViewModel.isBolusRecommended)
385-
let recommendation = ManualBolusRecommendation(amount: 1.234, pendingInsulin: 4.321)
385+
let recommendation = ManualBolusRecommendation(amount: 1.25, pendingInsulin: 4.321)
386386
delegate.loopState.bolusRecommendationResult = recommendation
387387
await bolusEntryViewModel.update()
388388
XCTAssertTrue(bolusEntryViewModel.isBolusRecommended)

0 commit comments

Comments
 (0)