test: cover reusable theme pack spec

This commit is contained in:
Admin 2026-09-23 06:48:06 +00:00
parent b958d85ada
commit fc77267987

11
server/themePack.test.js Normal file
View File

@ -0,0 +1,11 @@
import test from 'node:test'
import assert from 'node:assert/strict'
import { themePackSpec } from './themePack.js'
test('theme pack spec is reusable and content-independent', () => {
assert.equal(themePackSpec.format, 'template-studio-theme')
assert.equal(themePackSpec.version, 1)
assert.equal(themePackSpec.appliesTo, 'report')
assert.ok(themePackSpec.theme)
assert.ok(Array.isArray(themePackSpec.assets))
})