Skip to content

Commit

Permalink
FSR-88: Update forecast caveat wording on station page. (#161)
Browse files Browse the repository at this point in the history
Co-authored-by: John Shields <[email protected]>
  • Loading branch information
JFSCH and John Shields authored Dec 2, 2020
1 parent 9a3b183 commit 9902f6b
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/station.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class ViewModel {
const forecastHighestPoint = parseFloat(highestPoint._).toFixed(2)
const forecastHighestPointTime = highestPoint.formattedTimestamp

this.forecastDetails = `The highest level in the forecast is ${forecastHighestPoint}m at ${forecastHighestPointTime}. Forecasts come from a computer model and changes regularly.`
this.forecastDetails = `The highest level in our forecast is ${forecastHighestPoint}m at ${forecastHighestPointTime}. Forecasts come from a computer model and can change.`
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/routes/station.js
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ lab.experiment('Test - /station/{id}', () => {

Code.expect(response.statusCode).to.equal(200)
Code.expect(response.payload).to.contain('<a href="/target-area/062FWF46Hertford">River Lee at Hertford and Ware</a>')
Code.expect(response.payload).to.contain('The highest level in the forecast is')
Code.expect(response.payload).to.contain('The highest level in our forecast is')
})
lab.test('GET station/5146 with latest value over hour old but < 24 hours ', async () => {
const floodService = require('../../server/services/flood')
Expand Down

0 comments on commit 9902f6b

Please sign in to comment.