From 5d829ef0ff60f70157de006c8076a31f608a5c87 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 17 Nov 2026 04:39:41 +0100 Subject: [PATCH] Pin the colour names to the published list's digest --- src/wiki/parse/colour-names.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/wiki/parse/colour-names.test.ts diff --git a/src/wiki/parse/colour-names.test.ts b/src/wiki/parse/colour-names.test.ts new file mode 100644 index 0000000..d421499 --- /dev/null +++ b/src/wiki/parse/colour-names.test.ts @@ -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') +})