Skip to content

Commit

Permalink
updated short name on thresholds to include name of flood warning area
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeGordon83 committed Oct 3, 2024
1 parent 8be10c9 commit b4fc81e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/models/views/lib/process-imtd-thresholds.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function calculateWarningThreshold (imtdThresholds, stationStageDatum, stationSu
description: imtdThresholds.warning.severity_value
? `${warningType} issued: <a href="/target-area/${imtdThresholds.warning.fwis_code}">${imtdThresholds.warning.ta_name}</a>`
: 'Property flooding is possible above this level',
shortname: 'Possible flood warnings',
shortname: imtdThresholds.warning.severity_value ? `${imtdThresholds.warning.ta_name}` : 'Possible flood warnings',
value: imtdThresholdWarning
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/models/lib/process-imtd-thresholds.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const lab = exports.lab = Lab.script()
const processImtdThresholds = require('../../../server/models/views/lib/process-imtd-thresholds')

const alertExpectedText = { id: 'alertThreshold', description: 'Top of normal range. Low lying land flooding possible above this level. One or more flood alerts may be issued', shortname: 'Possible flood alerts' }
const warningExpectedText = { id: 'warningThreshold', description: 'Flood Warning issued: <a href="/target-area/062FWF46Harpendn">River Lee at Harpenden</a>', shortname: 'Possible flood warnings' }
const warningExpectedText = { id: 'warningThreshold', description: 'Flood Warning issued: <a href="/target-area/062FWF46Harpendn">River Lee at Harpenden</a>', shortname: 'River Lee at Harpenden' }

function expectThresholds (thresholds, warningThreshold, alertThreshold) {
Code.expect(thresholds.length).to.equal(2)
Expand Down

0 comments on commit b4fc81e

Please sign in to comment.