import test from 'node:test';import assert from 'node:assert/strict';import {progressionHistoryRows} from '../control-panel/public/cp-v2/cp-v2-progression-history.mjs'; test('history uses real recorded XP, mission titles and stable key references',()=>{const row=progressionHistoryRows([{keyId:'key-123',action:'quest-claimed',createdAt:0,details:{definitionId:'S1-A-01',xp:100,seasonId:'S01'}}])[0];assert.equal(row.title,'Complete onboarding');assert.equal(row.action,'Quest claimed');assert.equal(row.xp,100);assert.equal(row.keyId,'key-123');assert.match(row.date,/1970/);}); test('history preserves unknown identifiers without inventing XP or rendering HTML',()=>{const [row]=progressionHistoryRows([{action:'