We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baebe56 commit 9a78f0cCopy full SHA for 9a78f0c
1 file changed
packages/neaps/test/index.test.ts
@@ -101,6 +101,17 @@ describe('getWaterLevelAtTime', () => {
101
expect(prediction.units).toBe('feet')
102
expect(prediction.level).toBeCloseTo(-1.44, 2)
103
})
104
+
105
+ test('with unknown units', () => {
106
+ expect(() =>
107
+ getWaterLevelAtTime({
108
+ lat: 26.772,
109
+ lon: -80.05,
110
+ time: new Date('2025-12-19T00:30:00-05:00'),
111
+ units: 'fathoms' as any
112
+ })
113
+ ).toThrow('Unsupported units: fathoms')
114
115
116
117
describe('for a specific station', () => {
0 commit comments