test: cover reusable theme pack spec
This commit is contained in:
parent
b958d85ada
commit
fc77267987
11
server/themePack.test.js
Normal file
11
server/themePack.test.js
Normal 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))
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user