Skip to content

Commit

Permalink
feat: include location.altitudinalZone in options for targetAltitudin…
Browse files Browse the repository at this point in the history
…alZone
  • Loading branch information
friedjoff committed Oct 8, 2020
1 parent 1601eee commit f5a78cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function project(location = {}, targetAltitude, previousResult) {
}

if (result && location.forestType && altitudeIdx !== -1) {
result.options.targetAltitudinalZone = altitudeList.slice(altitudeIdx + 1);
result.options.targetAltitudinalZone = altitudeList.slice(altitudeIdx);
}

if (location.transitionForestType) {
Expand Down
2 changes: 1 addition & 1 deletion lib/test/project.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('valid options', () => {
altitudinalZone: '60',
forestType: '47H',
}).options.targetAltitudinalZone,
).toStrictEqual(['50', '40', '30', '20', '10', '0']);
).toStrictEqual(['60', '50', '40', '30', '20', '10', '0']);
});

test('check for unknown as only available option', () => {
Expand Down

0 comments on commit f5a78cc

Please sign in to comment.