5 lines
762 B
JavaScript
5 lines
762 B
JavaScript
import fs from 'node:fs';import assert from 'node:assert/strict';import {createHash} from 'node:crypto';
|
|
const read=file=>JSON.parse(fs.readFileSync(file));const hash=bytes=>createHash('sha256').update(bytes).digest('hex');
|
|
const old=read('.qa/embedded-browser-b-legacy-report-retention.json');assert.equal(old.success,true);assert.equal(hash(fs.readFileSync(old.file)),old.historicalSha256);
|
|
const result={...old,inheritedReceipt:'.qa/embedded-browser-b-legacy-report-retention.json',scope:'No legacy report rewrite: C reuses the original B UI results, and the restored historical report remains exact.'};
|
|
fs.writeFileSync('.qa/embedded-browser-d-legacy-report-retention.json',JSON.stringify(result,null,2)+'\n',{flag:'wx'});console.log(JSON.stringify(result)); |