Files
SGF/scripts/sgf-fiscal-entry-http.mjs
2026-11-11 09:00:17 +02:00

4 lines
795 B
JavaScript

import fs from 'node:fs';import assert from 'node:assert/strict';
const r=await fetch('http://127.0.0.1:8085/sgf');assert.equal(r.status,200);const h=await r.text(),nav=h.split('</nav>')[0],accounting=nav.split('Funções de Contabilidade')[1];assert(accounting.includes('sgf:finance_prepare'));assert(accounting.includes('sgf:finance_review'));assert.equal((nav.match(/class="module-choice"/g)||[]).length,6);
const run=JSON.parse(fs.readFileSync('C:/laragon/data/sgf-tempo/run/modular-regression-current.json'));const f=run.root+'/private/receipt-composition-cc50a276c10c/fiscal-entry-http-20261110.json';fs.writeFileSync(f,JSON.stringify({passed:true,checks:3,new_rights:0,business_commands:0,browser_visual_review:false},null,2));console.log(JSON.stringify({passed:true,checks:3,proof:f}));