test: move the tzdb version test into tests/ so npm test runs it

This commit is contained in:
dualfroz committed 2026-10-16 09:04:30 +02:00
1 parent 27503a50da
commit 297f022747
1 file changed
+2 -2
-9
View File
@@ -1,9 +0,0 @@
import test from 'tape'
import spacetime from './lib/index.js'
import { tzdbVersion } from '../zonefile/iana.js'
test('tzdb version', (t) => {
t.ok(/^\d{4}[a-z]+$/.test(spacetime.tzdbVersion), `looks like '2026c'`)
t.equal(spacetime.tzdbVersion, tzdbVersion, 'same as zonefile/iana.js')
t.end()
})