cultnet-ts: pin the text() sanitiser around a chunk's hash and id

The lone-surrogate row now carries the value in the chunk hash and id slots, so removing text() there fails. Closes follow_up content-id-sanitiser-pin's pin.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-22 23:58:08 +02:00
commit bd40c05dff

View file

@ -450,7 +450,7 @@ test("a lone surrogate is written as U+FFFD at every string length, short and lo
const withText = (value: string): CultMeshCdnArtifactManifest => ({
...base,
artifactId: value, kind: value, version: value, mimeType: value, createdAtUtc: value,
chunks: [{ ...base.chunks[0]!, recordKey: value }],
chunks: [{ ...base.chunks[0]!, chunkHash: value, recordKey: value, id: value }],
tags: [value],
metadata: [[value, value]],
});