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:
@@ -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')
|
||||
})
|
||||
Reference in New Issue
Block a user