feat: expose the tzdb version of the bundled zonefile

This commit is contained in:
dualfroz committed 2026-10-03 15:30:58 +02:00
1 parent d47824c8f3
commit 1668c0dd6b
7 files changed
+22 -3

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
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()
})