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') +})