diff --git a/test/routes/station.js b/test/routes/station.js
index 301c2d4f7..8fe3d1ec3 100644
--- a/test/routes/station.js
+++ b/test/routes/station.js
@@ -2164,7 +2164,7 @@ lab.experiment('Test - /station/{id}', () => {
Code.expect(response.payload).to.contain('Upstream')
Code.expect(response.payload).to.contain('Download data CSV (12KB)')
})
- lab.test('GET station/1034 - Coastal River title check ', async () => {
+ lab.test('GET station/1034 - Coastal River title check ', async () => {
const floodService = require('../../server/services/flood')
const fakeStationData = () => {
@@ -2262,17 +2262,17 @@ lab.experiment('Test - /station/{id}', () => {
]
const fakeImpactsData = () => []
- const fakeThresholdsData = () => []
- const fakeWarningsAlertsData = () => []
+ const fakeForecastFlag = () => { return { } }
+ const fakeTargetAreasData = () => []
const fakeStationThresholdData = () => []
sandbox.stub(floodService, 'getStationById').callsFake(fakeStationData)
sandbox.stub(floodService, 'getRiverStationByStationId').callsFake(fakeRiverData)
sandbox.stub(floodService, 'getStationTelemetry').callsFake(fakeTelemetryData)
sandbox.stub(floodService, 'getImpactData').callsFake(fakeImpactsData)
- sandbox.stub(floodService, 'getStationForecastThresholds').callsFake(fakeThresholdsData)
+ sandbox.stub(floodService, 'getForecastFlag').callsFake(fakeForecastFlag)
sandbox.stub(floodService, 'getStationImtdThresholds').callsFake(fakeStationThresholdData)
- sandbox.stub(floodService, 'getWarningsAlertsWithinStationBuffer').callsFake(fakeWarningsAlertsData)
+ sandbox.stub(floodService, 'getWarningsAlertsWithinStationBuffer').callsFake(fakeTargetAreasData)
const stationPlugin = {
plugin: {