import fs from 'node:fs';
import assert from 'node:assert/strict';
import {checkOutcomeReceipt} from './checker.mjs';
const data=JSON.parse(fs.readFileSync(new URL('./fixtures.json',import.meta.url),'utf8'));
for(const c of data.cases)assert.equal(checkOutcomeReceipt(c.receipt).internallyConsistent,c.expectedInternallyConsistent,c.id);
console.log(`${data.cases.length}/${data.cases.length} local synthetic expectations matched. No authenticity, signature, provider or payment verification performed.`);
