Skip to content

Commit

Permalink
bugfix/1398 - Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erikquinn committed Feb 11, 2020
1 parent 03c5156 commit 035eb32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions test/aircraft/Pilot/Pilot.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down
4 changes: 2 additions & 2 deletions test/airport/runway/RunwayModel.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ 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);
});

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);
Expand Down

0 comments on commit 035eb32

Please sign in to comment.