From 035eb329b00d83c046c7d928733c608a86de45b5 Mon Sep 17 00:00:00 2001 From: Erik Quinn Date: Sun, 9 Feb 2020 16:36:18 -0500 Subject: [PATCH] bugfix/1398 - Update tests --- test/aircraft/Pilot/Pilot.spec.js | 8 ++++---- test/airport/runway/RunwayModel.spec.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/aircraft/Pilot/Pilot.spec.js b/test/aircraft/Pilot/Pilot.spec.js index 517c764c3e..7cc732b906 100644 --- a/test/aircraft/Pilot/Pilot.spec.js +++ b/test/aircraft/Pilot/Pilot.spec.js @@ -562,10 +562,10 @@ ava('.conductInstrumentApproach() returns failure message when no runway is prov ava('.conductInstrumentApproach() returns failure message when assigned altitude is lower than minimum glideslope intercept altitude', (t) => { const expectedResult = [false, { - log: 'unable ILS 19L, our assigned altitude is below the minimum glideslope ' - + 'intercept altitude, request climb to 3400', - say: 'unable ILS one niner left, our assigned altitude is below the minimum ' - + 'glideslope intercept altitude, request climb to three thousand four hundred' + log: 'unable ILS 19L, our assigned altitude is below the minimum glideslope ' + + 'intercept altitude, request climb to 3700', + say: 'unable ILS one niner left, our assigned altitude is below the minimum ' + + 'glideslope intercept altitude, request climb to three thousand seven hundred' }]; const aircraftModel = new AircraftModel(ARRIVAL_AIRCRAFT_INIT_PROPS_MOCK, createNavigationLibraryFixture()); diff --git a/test/airport/runway/RunwayModel.spec.js b/test/airport/runway/RunwayModel.spec.js index 63edfe188a..95b1292f3f 100644 --- a/test/airport/runway/RunwayModel.spec.js +++ b/test/airport/runway/RunwayModel.spec.js @@ -83,7 +83,7 @@ ava('.getGlideslopeAltitude() returns glideslope altitude at the specified dista ava('.getGlideslopeAltitudeAtFinalApproachFix() returns glideslope altitude at the final approach fix', (t) => { const model = new RunwayModel(runway07L25R, 0, airportPositionFixtureKLAS); - const expectedResult = 3452.7428770628912; + const expectedResult = 3771.178596328614; const result = model.getGlideslopeAltitudeAtFinalApproachFix(); t.true(result === expectedResult); @@ -91,7 +91,7 @@ ava('.getGlideslopeAltitudeAtFinalApproachFix() returns glideslope altitude at t ava('.getMinimumGlideslopeInterceptAltitude() returns glideslope altitude at the final approach fix', (t) => { const model = new RunwayModel(runway07L25R, 0, airportPositionFixtureKLAS); - const expectedResult = 3500; + const expectedResult = 3800; const result = model.getMinimumGlideslopeInterceptAltitude(); t.true(result === expectedResult);