Skip to content

Commit

Permalink
chore: Add fakeNonForecastFlag.json test data and update fakeForecast…
Browse files Browse the repository at this point in the history
…Flag function
  • Loading branch information
nikiwycherley committed Aug 7, 2024
1 parent d0db2b0 commit 18b7184
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions test/data/fakeNonForecastFlag.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"station_display_time_series_id": "94280",
"station_id": "1001",
"direction": "u",
"display_time_series": false
}
2 changes: 1 addition & 1 deletion test/routes/station.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ lab.experiment('Test - /station/{id}', () => {
]

const fakeImpactsData = () => []
const fakeForecastFlag = () => { return { } }
const fakeForecastFlag = () => data.fakeNonForecastFlag
const fakeTargetAreasData = () => []
const fakeStationThresholdData = () => []

Expand Down

0 comments on commit 18b7184

Please sign in to comment.