From e53267bb1c3be30dd84c466c7369a2c35ae3fe52 Mon Sep 17 00:00:00 2001 From: Jiri Pokorny Date: Thu, 22 Aug 2024 20:22:14 +0200 Subject: [PATCH] Fixed broken tests --- projects/planner/src/app/shared/planner.service.spec.ts | 4 ++-- projects/planner/src/app/shared/preferencesStore.spec.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/planner/src/app/shared/planner.service.spec.ts b/projects/planner/src/app/shared/planner.service.spec.ts index e444879e..c9b3834f 100644 --- a/projects/planner/src/app/shared/planner.service.spec.ts +++ b/projects/planner/src/app/shared/planner.service.spec.ts @@ -137,8 +137,8 @@ describe('PlannerService', () => { expect(tanksService.firstTank.tank.reserve).toEqual(78); }); - it('109 bar remaining gas', () => { - expect(tanksService.firstTank.tank.endPressure).toEqual(123); + it('124 bar remaining gas', () => { + expect(tanksService.firstTank.tank.endPressure).toEqual(124); }); }); diff --git a/projects/planner/src/app/shared/preferencesStore.spec.ts b/projects/planner/src/app/shared/preferencesStore.spec.ts index 93b8639d..51ec6fac 100644 --- a/projects/planner/src/app/shared/preferencesStore.spec.ts +++ b/projects/planner/src/app/shared/preferencesStore.spec.ts @@ -130,7 +130,7 @@ describe('PreferencesStore', () => { planner.calculate(1); // not called automatically const expected1 = new Tank(15, 150, 21); expected1.id = 1; - expected1.consumed = 66; + expected1.consumed = 65; expected1.reserve = 45; const expected2 = new Tank(11.1, 200, 50); expected2.id = 2;