3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-18 22:25:44 +01:00

Pin the colour names to the published list's digest

This commit is contained in:
2026-11-17 04:39:41 +01:00
committed by Lillem4n
parent 7ed65c3f0e
commit 5d829ef0ff
+9
View File
@@ -0,0 +1,9 @@
import assert from 'node:assert/strict'
import { createHash } from 'node:crypto'
import test from 'node:test'
import { colourNames } from './colour-names.ts'
test("holds CSS Color Module Level 4's 148 named colours, by the digest of the published list", () => {
assert.equal(createHash('sha256').update(JSON.stringify(colourNames)).digest('hex'), 'b0342a8a5a0071cd9f90a78f9490277db0c3632a976b2a9745d08aa8e51eb1fa')
})