Skip to content

Commit 59d168b

Browse files
committed
Skip subordinate stations in noaa benchmarks for now
1 parent 076cc0b commit 59d168b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/tide-predictor/test/noaa.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ import tidePrediction from '../src/index.js'
44
import db from '@neaps/tide-database'
55
import { createWriteStream } from 'fs'
66

7-
const noaa = db.filter((station) =>
8-
station.source.source_url.includes('noaa.gov')
7+
const noaa = db.filter(
8+
(station) =>
9+
// TODO: Update this to test subordinate stations too.
10+
// Need to switch from `getWaterLevelAtTime` to `getExtremesPrediction` and compare time/level.
11+
station.type === 'reference' &&
12+
station.source.source_url.includes('noaa.gov')
913
)
1014

1115
// Create a directory for test cache

0 commit comments

Comments
 (0)