Skip to content

Commit 192f3c3

Browse files
committed
Add test for getWaterLevelAtTime, getTimelinePrediction
1 parent b07c957 commit 192f3c3

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

packages/neaps/test/index.test.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,30 @@ describe('for a specific station', () => {
144144
})
145145
})
146146
})
147+
148+
describe('getTimelinePrediction', () => {
149+
test('is not supported', () => {
150+
expect(() =>
151+
station.getTimelinePrediction({
152+
start: new Date('2025-12-19T00:00:00Z'),
153+
end: new Date('2025-12-19T01:00:00Z')
154+
})
155+
).toThrow(
156+
'Timeline predictions are not supported for subordinate stations'
157+
)
158+
})
159+
})
160+
describe('getWaterLevelAtTime', () => {
161+
test('is not supported', () => {
162+
expect(() =>
163+
station.getWaterLevelAtTime({
164+
time: new Date('2025-12-19T00:00:00Z')
165+
})
166+
).toThrow(
167+
'Water level predictions are not supported for subordinate stations'
168+
)
169+
})
170+
})
147171
})
148172

149173
describe('getTimelinePrediction', () => {

0 commit comments

Comments
 (0)